samueldomdey commited on
Commit
b6fefc9
1 Parent(s): a6a2f46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- article="<p Cosine similarity of image/text pair using a multimodal clip model. Note: should an error using the given URL occur, you can use this model through image upload instead: /p> <a href='https://huggingface.co/spaces/samueldomdey/ClipCosineSimilarityUpload'>link</a>",
 
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