tommy24 commited on
Commit
85cd6c8
·
1 Parent(s): baf40d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -340,7 +340,6 @@ np.set_printoptions(suppress=True)
340
  model = tf.keras.models.load_model('keras_model.h5')
341
  data = np.ndarray(shape=(1, 224, 224, 3), dtype=np.float32)
342
 
343
- # Load labels from a file
344
  with open("labels.txt", "r") as file:
345
  labels = file.read().splitlines()
346
 
@@ -413,6 +412,8 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
413
  "model": model_llm
414
  }).json()
415
 
 
 
416
  reply = response["choices"][0]["message"]["content"]
417
  messages.append({"role": "assistant", "content": reply})
418
 
 
340
  model = tf.keras.models.load_model('keras_model.h5')
341
  data = np.ndarray(shape=(1, 224, 224, 3), dtype=np.float32)
342
 
 
343
  with open("labels.txt", "r") as file:
344
  labels = file.read().splitlines()
345
 
 
412
  "model": model_llm
413
  }).json()
414
 
415
+ print("RESPONSEEEE:",response)
416
+
417
  reply = response["choices"][0]["message"]["content"]
418
  messages.append({"role": "assistant", "content": reply})
419