nezihtopaloglu commited on
Commit
2a57d52
·
verified ·
1 Parent(s): 0f393e6

Update app.py

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