Saad0KH commited on
Commit
fb72456
1 Parent(s): 7988f36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def classify_image_with_text(text, image):
19
  probs = logits_per_image.softmax(dim=1)
20
  predicted_class_index = probs.argmax(dim=1).item()
21
  predicted_label = keywords[predicted_class_index]
22
- return predicted_class_index
23
 
24
  # Créer l'interface Gradio avec l'API de Gradio Blocks
25
  with gr.Interface(
 
19
  probs = logits_per_image.softmax(dim=1)
20
  predicted_class_index = probs.argmax(dim=1).item()
21
  predicted_label = keywords[predicted_class_index]
22
+ return predicted_label
23
 
24
  # Créer l'interface Gradio avec l'API de Gradio Blocks
25
  with gr.Interface(