Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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(
|