Update app.py
Browse files
app.py
CHANGED
|
@@ -18,8 +18,8 @@ PREPROMPT = """Vous êtes un assistant IA chargé de générer une présentation
|
|
| 18 |
Voici le texte à transformer en présentation :"""
|
| 19 |
|
| 20 |
# Chargement du modèle IA depuis Hugging Face
|
| 21 |
-
text_to_presentation = pipeline("text-generation", model="
|
| 22 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 23 |
|
| 24 |
def generate_presentation(text):
|
| 25 |
# Ajout du préprompt au texte de l'utilisateur
|
|
|
|
| 18 |
Voici le texte à transformer en présentation :"""
|
| 19 |
|
| 20 |
# Chargement du modèle IA depuis Hugging Face
|
| 21 |
+
text_to_presentation = pipeline("text-generation", model="MisterAI/Bartowski_MistralAI_Mistral-Small-24B-Base-2501-GGUF")
|
| 22 |
+
tokenizer = AutoTokenizer.from_pretrained("MisterAI/Bartowski_MistralAI_Mistral-Small-24B-Base-2501-GGUF")
|
| 23 |
|
| 24 |
def generate_presentation(text):
|
| 25 |
# Ajout du préprompt au texte de l'utilisateur
|