Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def answer_question(img, prompt, reasoning):
|
|
122 |
{"start": g["start_idx"], "end": g["end_idx"], "entity": json.dumps(g["points"])}
|
123 |
for g in resp["reasoning"]["grounding"]
|
124 |
] if reasoning else []
|
125 |
-
for new_text in
|
126 |
buffer += new_text
|
127 |
yield buffer.strip(), {"text": reasoning_text, "entities": entities}
|
128 |
|
|
|
122 |
{"start": g["start_idx"], "end": g["end_idx"], "entity": json.dumps(g["points"])}
|
123 |
for g in resp["reasoning"]["grounding"]
|
124 |
] if reasoning else []
|
125 |
+
for new_text in resp["answer"]:
|
126 |
buffer += new_text
|
127 |
yield buffer.strip(), {"text": reasoning_text, "entities": entities}
|
128 |
|