louisepxllock commited on
Commit
c1fde9f
·
verified ·
1 Parent(s): 01f276d

Update app.py

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