Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def update_visibility(input1_type, input2_type):
|
|
| 52 |
|
| 53 |
# Gradio UI
|
| 54 |
with gr.Blocks() as demo:
|
| 55 |
-
gr.Markdown("## Multimodal Similarity
|
| 56 |
|
| 57 |
with gr.Row():
|
| 58 |
input1_type = gr.Radio(["Text", "Image"], label="Input 1 Type", value="Text")
|
|
@@ -74,4 +74,4 @@ with gr.Blocks() as demo:
|
|
| 74 |
btn = gr.Button("Compute Similarity")
|
| 75 |
btn.click(compute_similarity, inputs=[input1, input2, input1_type, input2_type], outputs=output)
|
| 76 |
|
| 77 |
-
demo.launch()
|
|
|
|
| 52 |
|
| 53 |
# Gradio UI
|
| 54 |
with gr.Blocks() as demo:
|
| 55 |
+
gr.Markdown("## JinaAI CLIP Multimodal Similarity")
|
| 56 |
|
| 57 |
with gr.Row():
|
| 58 |
input1_type = gr.Radio(["Text", "Image"], label="Input 1 Type", value="Text")
|
|
|
|
| 74 |
btn = gr.Button("Compute Similarity")
|
| 75 |
btn.click(compute_similarity, inputs=[input1, input2, input1_type, input2_type], outputs=output)
|
| 76 |
|
| 77 |
+
demo.launch()
|