Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,9 @@ with open("uni_dataset.txt", "r", encoding="utf-8") as file:
|
|
| 12 |
# Print the text below
|
| 13 |
print("success")
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
client = InferenceClient("microsoft/phi-4")
|
| 17 |
def respond(message, history):
|
|
|
|
| 12 |
# Print the text below
|
| 13 |
print("success")
|
| 14 |
|
| 15 |
+
chunks = [chunk.strip() for chunk in uni_dataset.split("\n\n") if chunk.strip()]
|
| 16 |
+
|
| 17 |
+
embedder = SentenceTransformer('all-MiniLM-L6-v2')
|
| 18 |
|
| 19 |
client = InferenceClient("microsoft/phi-4")
|
| 20 |
def respond(message, history):
|