Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,8 +77,7 @@ def respond1(
|
|
| 77 |
yield response
|
| 78 |
def respond0(multimodal_input,password):
|
| 79 |
if password==password1:
|
| 80 |
-
if multimodal_input["files"]
|
| 81 |
-
|
| 82 |
images = multimodal_input["files"]
|
| 83 |
content = [{"type": "image"} for _ in images]
|
| 84 |
content.append({"type": "text", "text": multimodal_input["text"]})
|
|
|
|
| 77 |
yield response
|
| 78 |
def respond0(multimodal_input,password):
|
| 79 |
if password==password1:
|
| 80 |
+
if multimodal_input["files"] =! None:
|
|
|
|
| 81 |
images = multimodal_input["files"]
|
| 82 |
content = [{"type": "image"} for _ in images]
|
| 83 |
content.append({"type": "text", "text": multimodal_input["text"]})
|