Spaces:
Runtime error
Runtime error
Commit
·
ebe9bed
1
Parent(s):
d85d411
Update input fields in OpenCLIP Embedding Generator
Browse files
app.py
CHANGED
|
@@ -233,18 +233,18 @@ demo = gr.Interface(
|
|
| 233 |
inputs=[
|
| 234 |
gr.Textbox(lines=5, max_lines=5, placeholder="Enter Text Here...", label="Text to Embed"),
|
| 235 |
gr.Image(height=512, type="pil", label="Image to Embed"),
|
| 236 |
-
gr.Textbox(label="Base64 Encoded Image", visible=
|
| 237 |
],
|
| 238 |
outputs=[
|
| 239 |
gr.Textbox(lines=5, max_lines=5, label="Text Embedding", autoscroll=False),
|
| 240 |
gr.Textbox(lines=5, max_lines=5, label="Image Embedding", autoscroll=False),
|
| 241 |
gr.Textbox(label="Cosine Similarity"),
|
| 242 |
-
gr.Textbox(label="Embedding of Base64 Encoded Images", visible=
|
| 243 |
],
|
| 244 |
title="OpenCLIP Embedding Generator",
|
| 245 |
description="Generate embeddings using OpenCLIP model for text and images.",
|
| 246 |
allow_flagging="never",
|
| 247 |
-
batch=
|
| 248 |
api_name="embed"
|
| 249 |
)
|
| 250 |
|
|
|
|
| 233 |
inputs=[
|
| 234 |
gr.Textbox(lines=5, max_lines=5, placeholder="Enter Text Here...", label="Text to Embed"),
|
| 235 |
gr.Image(height=512, type="pil", label="Image to Embed"),
|
| 236 |
+
gr.Textbox(lines=5, max_lines=5, label="Base64 Encoded Image", visible=True)
|
| 237 |
],
|
| 238 |
outputs=[
|
| 239 |
gr.Textbox(lines=5, max_lines=5, label="Text Embedding", autoscroll=False),
|
| 240 |
gr.Textbox(lines=5, max_lines=5, label="Image Embedding", autoscroll=False),
|
| 241 |
gr.Textbox(label="Cosine Similarity"),
|
| 242 |
+
gr.Textbox(lines=5, max_lines=5, label="Embedding of Base64 Encoded Images", visible=True)
|
| 243 |
],
|
| 244 |
title="OpenCLIP Embedding Generator",
|
| 245 |
description="Generate embeddings using OpenCLIP model for text and images.",
|
| 246 |
allow_flagging="never",
|
| 247 |
+
batch=False,
|
| 248 |
api_name="embed"
|
| 249 |
)
|
| 250 |
|