codeblacks commited on
Commit
63316b1
·
verified ·
1 Parent(s): c44dddd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def generate_embeddings(chunks):
15
  # Define the Gradio interface
16
  interface = gr.Interface(
17
  fn=generate_embeddings,
18
- inputs=gr.Textbox(lines=5, placeholder="Enter text chunks here...", type="list"),
19
  outputs=[gr.JSON(label="Embeddings"), gr.Label(label="Shape")],
20
  title="Sentence Transformer Embeddings",
21
  description="Generate embeddings for input text chunks."
 
15
  # Define the Gradio interface
16
  interface = gr.Interface(
17
  fn=generate_embeddings,
18
+ inputs=gr.Textbox(lines=5, placeholder="Enter text chunks here...", type="text"),
19
  outputs=[gr.JSON(label="Embeddings"), gr.Label(label="Shape")],
20
  title="Sentence Transformer Embeddings",
21
  description="Generate embeddings for input text chunks."