shubharthak commited on
Commit
bafeac3
·
1 Parent(s): 27f69ef

fixed streaming

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def predict(message, history, img):
55
  for response in gpt_response.content:
56
  ans += response
57
  time.sleep(0.001)
58
- yield response
59
 
60
  interface = gr.ChatInterface(predict, additional_inputs=gr.Image(type='pil', label='Upload your image...'))
61
  interface.launch(interface.queue())
 
55
  for response in gpt_response.content:
56
  ans += response
57
  time.sleep(0.001)
58
+ yield ans
59
 
60
  interface = gr.ChatInterface(predict, additional_inputs=gr.Image(type='pil', label='Upload your image...'))
61
  interface.launch(interface.queue())