Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,9 +36,8 @@ def answer_question(img, prompt):
|
|
36 |
|
37 |
buffer = ""
|
38 |
for new_text in streamer:
|
39 |
-
|
40 |
-
buffer
|
41 |
-
yield buffer
|
42 |
|
43 |
|
44 |
with gr.Blocks() as demo:
|
|
|
36 |
|
37 |
buffer = ""
|
38 |
for new_text in streamer:
|
39 |
+
buffer += new_text
|
40 |
+
yield buffer.strip()
|
|
|
41 |
|
42 |
|
43 |
with gr.Blocks() as demo:
|