amaltese commited on
Commit
46a9202
·
verified ·
1 Parent(s): 9ed30a6

Update app.py

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