Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,15 @@ import huggingface_hub
|
|
| 4 |
from sentence-transformers import SentenceTransformer
|
| 5 |
import torch
|
| 6 |
import numpy as np
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
client = InferenceClient("Qwen/Qwen2.5-7B-Instruct")
|
| 9 |
|
|
|
|
| 4 |
from sentence-transformers import SentenceTransformer
|
| 5 |
import torch
|
| 6 |
import numpy as np
|
| 7 |
+
!pip install -q sentence-transformers
|
| 8 |
+
from sentence_transformers import SentenceTransformer
|
| 9 |
+
import torch
|
| 10 |
+
|
| 11 |
+
with open("knowledge.txt", "r", encoding="utf-8") as file:
|
| 12 |
+
# Read the entire contents of the file and store it in a variable
|
| 13 |
+
knowledge_base = file.read()
|
| 14 |
+
|
| 15 |
+
print(knowledge_base)
|
| 16 |
|
| 17 |
client = InferenceClient("Qwen/Qwen2.5-7B-Instruct")
|
| 18 |
|