JDWebProgrammer commited on
Commit
ad46bfd
·
1 Parent(s): 8b29ba8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.Textbox(default="Type text here.")
11
- outputs = gr.outputs.Textbox()
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()