Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ def predict(input_text):
|
|
15 |
|
16 |
# Calculate embeddings by calling model.encode(), specifying the device
|
17 |
embeddings = model.encode(input_text, device=device)
|
18 |
-
|
19 |
-
return
|
20 |
|
21 |
# Gradio app interface
|
22 |
gradio_app = gr.Interface(
|
|
|
15 |
|
16 |
# Calculate embeddings by calling model.encode(), specifying the device
|
17 |
embeddings = model.encode(input_text, device=device)
|
18 |
+
embeddings_str = np.array2string(embeddings, separator=',', threshold=np.inf)
|
19 |
+
return embeddings_str
|
20 |
|
21 |
# Gradio app interface
|
22 |
gradio_app = gr.Interface(
|