Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from PIL import Image, ImageDraw, ImageFont
|
|
11 |
|
12 |
def generate_script(topic):
|
13 |
"""Uses an open-source LLM to generate an engaging script of 8-10 minutes."""
|
14 |
-
llm = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct")
|
15 |
prompt = (f"Write an engaging and informative script on the topic '{topic}'. "
|
16 |
"The text should take about 8-10 minutes to read aloud at a normal pace.")
|
17 |
response = llm(prompt, max_length=1500, do_sample=True, temperature=0.7)
|
|
|
11 |
|
12 |
def generate_script(topic):
|
13 |
"""Uses an open-source LLM to generate an engaging script of 8-10 minutes."""
|
14 |
+
llm = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct-v0.3")
|
15 |
prompt = (f"Write an engaging and informative script on the topic '{topic}'. "
|
16 |
"The text should take about 8-10 minutes to read aloud at a normal pace.")
|
17 |
response = llm(prompt, max_length=1500, do_sample=True, temperature=0.7)
|