Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 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:
|