aifeifei798 commited on
Commit
3e62ad2
1 Parent(s): 8d8c753

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -66,8 +66,11 @@ def generate_text(
66
  picoutput=""
67
  history_prompt=""
68
  if in_files:
69
- picoutput=f"sends a picture that contains the following: {run_pic(in_files)}"
70
- yield picoutput
 
 
 
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