Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,10 @@ from transformers import pipeline
|
|
5 |
import wikipediaapi
|
6 |
|
7 |
# Load historical figures and tutor topics from Wikipedia dynamically
|
8 |
-
wiki_wiki = wikipediaapi.Wikipedia(
|
|
|
|
|
|
|
9 |
|
10 |
# Load local AI model (Mistral-7B or Llama-2)
|
11 |
chat_model = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct-v0.1")
|
|
|
5 |
import wikipediaapi
|
6 |
|
7 |
# Load historical figures and tutor topics from Wikipedia dynamically
|
8 |
+
wiki_wiki = wikipediaapi.Wikipedia(
|
9 |
+
user_agent='HistoricalFiguresApp/1.0 ([email protected])', # Replace with your contact info
|
10 |
+
language='en'
|
11 |
+
)
|
12 |
|
13 |
# Load local AI model (Mistral-7B or Llama-2)
|
14 |
chat_model = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct-v0.1")
|