bluuebunny commited on
Commit
cccd2c8
·
verified ·
1 Parent(s): bf4250f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 embeddings
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(