tommy24 commited on
Commit
f6c7a0c
·
1 Parent(s): e57e35e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -993,13 +993,8 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
993
  }
994
  )
995
 
996
-
997
- if completion.choices[0].finish_reason == "stop":
998
- reply = completion.choices[0].message['content']
999
- print("RESPONSE TRY (NO IMAGE)", completion, reply)
1000
- elif completion.choices[0].finish_reason == "function_call":
1001
- reply = completion.choices[0].message['content']
1002
- print("RESPONSE TRY (NO IMAGE) FUNCTION_CALL", completion, reply)
1003
  except Exception as e:
1004
  print("Error",e)
1005
  reply = "Maximum messages: 15. Please clear your history and Try Again! (No Image)"
 
993
  }
994
  )
995
 
996
+ reply = completion.choices[0].message['content']
997
+ print("RESPONSE TRY (NO IMAGE)", completion, reply)
 
 
 
 
 
998
  except Exception as e:
999
  print("Error",e)
1000
  reply = "Maximum messages: 15. Please clear your history and Try Again! (No Image)"