Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
)
|