Update app.py
Browse files
app.py
CHANGED
@@ -66,8 +66,11 @@ def generate_text(
|
|
66 |
picoutput=""
|
67 |
history_prompt=""
|
68 |
if in_files:
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
71 |
else:
|
72 |
temp = ""
|
73 |
# Create system_prompt as a dictionary
|
|
|
66 |
picoutput=""
|
67 |
history_prompt=""
|
68 |
if in_files:
|
69 |
+
try:
|
70 |
+
picoutput=f"sends a picture that contains the following: {run_pic(in_files)}"
|
71 |
+
yield picoutput
|
72 |
+
except:
|
73 |
+
yield "only picture"
|
74 |
else:
|
75 |
temp = ""
|
76 |
# Create system_prompt as a dictionary
|