Spaces:
Sleeping
Sleeping
Update src/app.py (#1)
Browse files- Update src/app.py (6ee40ffd16a7e75833b7ddc22dc450c6c62b4625)
Co-authored-by: Assaf Arbelle <aarbelle@users.noreply.huggingface.co>
- src/app.py +1 -1
src/app.py
CHANGED
|
@@ -140,7 +140,7 @@ def get_text_from_content(content):
|
|
| 140 |
if item["type"] == "text":
|
| 141 |
texts.append(item["text"])
|
| 142 |
elif item["type"] == "image":
|
| 143 |
-
texts.append("
|
| 144 |
return " ".join(texts)
|
| 145 |
|
| 146 |
@spaces.GPU
|
|
|
|
| 140 |
if item["type"] == "text":
|
| 141 |
texts.append(item["text"])
|
| 142 |
elif item["type"] == "image":
|
| 143 |
+
texts.append("<image>")
|
| 144 |
return " ".join(texts)
|
| 145 |
|
| 146 |
@spaces.GPU
|