VJ-Rising commited on
Commit
02148b2
·
verified ·
1 Parent(s): ede7b94

Tried adding a file for it to read

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -2,6 +2,9 @@ import gradio as gr
2
 
3
  from huggingface_hub import InferenceClient
4
 
 
 
 
5
  client = InferenceClient("Qwen/Qwen2.5-7B-Instruct")
6
 
7
  def respond(message, history):
 
2
 
3
  from huggingface_hub import InferenceClient
4
 
5
+ with open("knowledge.txt", "r", encoding="https://huggingface.co/spaces/MindMattersKWK/mindmatters/resolve/main/knowledge.txt") as file:
6
+ knowledge_text = file.read()
7
+
8
  client = InferenceClient("Qwen/Qwen2.5-7B-Instruct")
9
 
10
  def respond(message, history):