Spaces:
Sleeping
Sleeping
remove pip install line
Browse files
app.py
CHANGED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
-
|
| 4 |
-
pip install -q sentence-transformers
|
| 5 |
from sentence_transformers import SentenceTransformer
|
| 6 |
import torch
|
|
|
|
| 7 |
|
| 8 |
-
# Open the .txt file in read mode with UTF-8 encoding which you
|
| 9 |
-
with open("uni_dataset.txt", "r", encoding="
|
| 10 |
# Read the entire contents of the file and store it in a variabled
|
| 11 |
readme_text = file.read()
|
| 12 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
|
|
|
|
|
|
| 3 |
from sentence_transformers import SentenceTransformer
|
| 4 |
import torch
|
| 5 |
+
import numpy
|
| 6 |
|
| 7 |
+
# Open the .txt file in read mode with UTF-8 encoding which you uploaded
|
| 8 |
+
with open("uni_dataset.txt", "r", encoding="utf-8") as file:
|
| 9 |
# Read the entire contents of the file and store it in a variabled
|
| 10 |
readme_text = file.read()
|
| 11 |
|