RoboApocalypse commited on
Commit
41b6bb8
·
1 Parent(s): 5dc1fdf

Update app.py with autoscroll option for textboxes

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -233,13 +233,13 @@ 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(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.",
@@ -250,4 +250,4 @@ demo = gr.Interface(
250
 
251
  # Enable queueing and launch the app
252
  if __name__ == "__main__":
253
- demo.queue().launch(show_api=True)
 
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", autoscroll=False)
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", autoscroll=False)
243
  ],
244
  title="OpenCLIP Embedding Generator",
245
  description="Generate embeddings using OpenCLIP model for text and images.",
 
250
 
251
  # Enable queueing and launch the app
252
  if __name__ == "__main__":
253
+ demo.queue().launch(show_api=True, share=True)