merve HF staff commited on
Commit
9986eb7
1 Parent(s): 64aeb13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -74,6 +74,8 @@ def model_inference(
74
 
75
  thread = Thread(target=model.generate, kwargs=generation_args)
76
  thread.start()
 
 
77
  buffer = ""
78
  for new_text in streamer:
79
  try:
 
74
 
75
  thread = Thread(target=model.generate, kwargs=generation_args)
76
  thread.start()
77
+ thread.join()
78
+
79
  buffer = ""
80
  for new_text in streamer:
81
  try: