Aishu-7 commited on
Commit
bc8f578
·
verified ·
1 Parent(s): 823509d

Update app.py

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