tommy24 commited on
Commit
054ebf9
·
1 Parent(s): 33cf851

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -994,7 +994,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
994
  )
995
 
996
 
997
- # reply = response["choices"][0]["message"]["content"]
998
  if completion.choices[0].finish_reason == "stop":
999
  reply = completion.choices[0].message['content']
1000
  print("RESPONSE TRY (NO IMAGE)", completion, reply)
@@ -1003,6 +1003,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
1003
  print("RESPONSE TRY (NO IMAGE) FUNCTION_CALL", completion, reply)
1004
  except:
1005
  reply = "Maximum messages: 15. Please clear your history and Try Again! (No Image)"
 
1006
  output.append({"Mode": "Chat", "content": reply})
1007
 
1008
  return output
 
994
  )
995
 
996
 
997
+ responseee = completion.choices
998
  if completion.choices[0].finish_reason == "stop":
999
  reply = completion.choices[0].message['content']
1000
  print("RESPONSE TRY (NO IMAGE)", completion, reply)
 
1003
  print("RESPONSE TRY (NO IMAGE) FUNCTION_CALL", completion, reply)
1004
  except:
1005
  reply = "Maximum messages: 15. Please clear your history and Try Again! (No Image)"
1006
+ print(responseee)
1007
  output.append({"Mode": "Chat", "content": reply})
1008
 
1009
  return output