codeblacks commited on
Commit
3777eab
·
verified ·
1 Parent(s): fb58c1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -12,7 +12,8 @@ def get_embeddings(sentences):
12
  interface = gr.Interface(
13
  fn=get_embeddings, # Function to call
14
  inputs=gr.Textbox(lines=2, placeholder="Enter sentences here, one per line"), # Input component
15
- outputs=gr.JSON(),
 
16
  title="Sentence Embeddings", # Interface title
17
  description="Enter sentences to get their embeddings." # Description
18
  )
 
12
  interface = gr.Interface(
13
  fn=get_embeddings, # Function to call
14
  inputs=gr.Textbox(lines=2, placeholder="Enter sentences here, one per line"), # Input component
15
+ # outputs=gr.JSON(),
16
+ outputs=gr.outputs.Textbox(label="Embeddings"),
17
  title="Sentence Embeddings", # Interface title
18
  description="Enter sentences to get their embeddings." # Description
19
  )