Spaces:
Running
on
Zero
Running
on
Zero
Update app.py (#3)
Browse files- Update app.py (9f8d6c9798f3831bedd1fd4a67ff8f26576a9bc2)
Co-authored-by: Assaf Arbelle <[email protected]>
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def get_text_from_content(content):
|
|
| 14 |
if item["type"] == "text":
|
| 15 |
texts.append(item["text"])
|
| 16 |
elif item["type"] == "image":
|
| 17 |
-
texts.append("
|
| 18 |
return " ".join(texts)
|
| 19 |
|
| 20 |
@spaces.GPU
|
|
|
|
| 14 |
if item["type"] == "text":
|
| 15 |
texts.append(item["text"])
|
| 16 |
elif item["type"] == "image":
|
| 17 |
+
texts.append("<image>")
|
| 18 |
return " ".join(texts)
|
| 19 |
|
| 20 |
@spaces.GPU
|