Spaces:
Runtime error
Runtime error
samueldomdey
commited on
Commit
·
b6fefc9
1
Parent(s):
a6a2f46
Update app.py
Browse files
app.py
CHANGED
@@ -64,6 +64,7 @@ def clip_sim_preds(url, text):
|
|
64 |
return "error"
|
65 |
|
66 |
|
|
|
67 |
# define app
|
68 |
# takes in url of an image and a corresponding text, computes and returns cosine similarity
|
69 |
gr.Interface(clip_sim_preds,
|
@@ -72,6 +73,8 @@ gr.Interface(clip_sim_preds,
|
|
72 |
outputs=[gr.outputs.Textbox(type="auto", label="Cosine similarity")],
|
73 |
theme="huggingface",
|
74 |
title="Clip Cosine similarity",
|
75 |
-
|
|
|
76 |
allow_flagging=False,).launch(debug=True)
|
|
|
77 |
|
|
|
64 |
return "error"
|
65 |
|
66 |
|
67 |
+
article = "<p style='text-align: center'><a href='https://huggingface.co/spaces/samueldomdey/ClipCosineSimilarityUpload' target='_blank'>Alternative</a></p>"
|
68 |
# define app
|
69 |
# takes in url of an image and a corresponding text, computes and returns cosine similarity
|
70 |
gr.Interface(clip_sim_preds,
|
|
|
73 |
outputs=[gr.outputs.Textbox(type="auto", label="Cosine similarity")],
|
74 |
theme="huggingface",
|
75 |
title="Clip Cosine similarity",
|
76 |
+
description="Clip cosine similarity of an image/text pair",
|
77 |
+
article=article,
|
78 |
allow_flagging=False,).launch(debug=True)
|
79 |
+
|
80 |
|