mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +00:00
Updated.
This commit is contained in:
@ -116,6 +116,7 @@ impl Component for App {
|
|||||||
let start_time = performance_now();
|
let start_time = performance_now();
|
||||||
self.current_decode = Some(CurrentDecode { start_time });
|
self.current_decode = Some(CurrentDecode { start_time });
|
||||||
self.status = "generating...".to_string();
|
self.status = "generating...".to_string();
|
||||||
|
self.n_tokens = 0;
|
||||||
self.generated.clear();
|
self.generated.clear();
|
||||||
let temp = *self.temperature.borrow();
|
let temp = *self.temperature.borrow();
|
||||||
console_log!("temp: {}", temp);
|
console_log!("temp: {}", temp);
|
||||||
@ -159,7 +160,6 @@ impl Component for App {
|
|||||||
}
|
}
|
||||||
Msg::WorkerInMsg(inp) => {
|
Msg::WorkerInMsg(inp) => {
|
||||||
self.worker.send(inp);
|
self.worker.send(inp);
|
||||||
self.n_tokens = 0;
|
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
Msg::UpdateStatus(status) => {
|
Msg::UpdateStatus(status) => {
|
||||||
|
Reference in New Issue
Block a user