Yordann commited on
Commit
97986d7
·
verified ·
1 Parent(s): 8ddd70e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ login(token=os.getenv("chatbot"))
21
  generator = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct-v0.1")
22
  bg_to_en = pipeline("translation", model="Helsinki-NLP/opus-mt-bg-en")
23
  en_to_bg = pipeline("translation", model="Helsinki-NLP/opus-mt-en-bg")
24
- tokenizer = AutoTokenizer.from_pretrained(model_id)
25
 
26
  def load_chunks(path, chunk_size=300):
27
  with open(path, "r", encoding="utf-8") as f:
 
21
  generator = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct-v0.1")
22
  bg_to_en = pipeline("translation", model="Helsinki-NLP/opus-mt-bg-en")
23
  en_to_bg = pipeline("translation", model="Helsinki-NLP/opus-mt-en-bg")
24
+ tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1")
25
 
26
  def load_chunks(path, chunk_size=300):
27
  with open(path, "r", encoding="utf-8") as f: