Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
|
|
| 1 |
from huggingface_hub import InferenceClient
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
import gradio as gr
|
| 4 |
import random
|
| 5 |
|
| 6 |
#Semantic Search
|
| 7 |
#STEP 1
|
| 8 |
#!pip install -q sentence-transformers
|
| 9 |
-
|
| 10 |
-
import torch
|
| 11 |
|
| 12 |
#STEP 2
|
| 13 |
# Open the water_cycle.txt file in read mode with UTF-8 encoding
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
+
from sentence_transformers import SentenceTransformer
|
| 4 |
+
import torch
|
| 5 |
|
|
|
|
| 6 |
import random
|
| 7 |
|
| 8 |
#Semantic Search
|
| 9 |
#STEP 1
|
| 10 |
#!pip install -q sentence-transformers
|
| 11 |
+
|
|
|
|
| 12 |
|
| 13 |
#STEP 2
|
| 14 |
# Open the water_cycle.txt file in read mode with UTF-8 encoding
|