Spaces:
Sleeping
Sleeping
Tried adding a file for it to read
Browse files
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):
|