Spaces:
Build error
Build error
Commit
·
cb820b7
1
Parent(s):
771ffee
Label Changes
Browse files
app.py
CHANGED
@@ -97,8 +97,9 @@ def classify_info(image_1, text_1, image_2, text_2):
|
|
97 |
ds = ds.batch(batch_size).prefetch(auto)
|
98 |
output = model.predict(ds)
|
99 |
|
100 |
-
|
101 |
-
|
|
|
102 |
|
103 |
|
104 |
model = from_pretrained_keras("keras-io/multimodal-entailment")
|
@@ -128,4 +129,4 @@ iface = gr.Interface(classify_info,
|
|
128 |
description = "Model for classifying whether image and text from one scenario complements the image and text from another scenario. They can be contradictory, implied or no entailment. Example images and text from the dataset in raw form !",
|
129 |
article = "Author: <a href=\"https://huggingface.co/reichenbach\">Rishav Chandra Varma</a>")
|
130 |
|
131 |
-
iface.launch(
|
|
|
97 |
ds = ds.batch(batch_size).prefetch(auto)
|
98 |
output = model.predict(ds)
|
99 |
|
100 |
+
outputs = {labels[i], output[i] for i in range(len(output))}
|
101 |
+
#label = np.argmax(output)
|
102 |
+
return outputs #labels[label]
|
103 |
|
104 |
|
105 |
model = from_pretrained_keras("keras-io/multimodal-entailment")
|
|
|
129 |
description = "Model for classifying whether image and text from one scenario complements the image and text from another scenario. They can be contradictory, implied or no entailment. Example images and text from the dataset in raw form !",
|
130 |
article = "Author: <a href=\"https://huggingface.co/reichenbach\">Rishav Chandra Varma</a>")
|
131 |
|
132 |
+
iface.launch()
|