Spaces:
Sleeping
Sleeping
Commit ·
bafeac3
1
Parent(s): 27f69ef
fixed streaming
Browse files
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
|
| 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())
|