Spaces:
Runtime error
Runtime error
Commit
·
ad46bfd
1
Parent(s):
8b29ba8
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,8 +7,8 @@ def text_to_embedding(text):
|
|
| 7 |
embedding = model_Q.encode(text)
|
| 8 |
return embedding
|
| 9 |
|
| 10 |
-
inputs = gr.
|
| 11 |
-
outputs = gr.
|
| 12 |
|
| 13 |
app = gr.Interface(fn=text_to_embedding, inputs=inputs, outputs=outputs, title="Text to Embedding")
|
| 14 |
app.launch()
|
|
|
|
| 7 |
embedding = model_Q.encode(text)
|
| 8 |
return embedding
|
| 9 |
|
| 10 |
+
inputs = gr.Textbox(default="Type text here.")
|
| 11 |
+
outputs = gr.Textbox()
|
| 12 |
|
| 13 |
app = gr.Interface(fn=text_to_embedding, inputs=inputs, outputs=outputs, title="Text to Embedding")
|
| 14 |
app.launch()
|