cbensimon HF staff commited on
Commit
7743055
1 Parent(s): ab94263

Actual text streaming

Browse files

Also yield `...` when Stream starts, as a UX feedback for "forward-pass started"
Live on this replicated Space: https://huggingface.co/spaces/cbensimon/SmolVLM

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,8 +76,8 @@ def model_inference(
76
 
77
  thread = Thread(target=model.generate, kwargs=generation_args)
78
  thread.start()
79
- thread.join()
80
-
81
  buffer = ""
82
 
83
 
 
76
 
77
  thread = Thread(target=model.generate, kwargs=generation_args)
78
  thread.start()
79
+
80
+ yield "..."
81
  buffer = ""
82
 
83