minko186 commited on
Commit
3ec56f1
·
verified ·
1 Parent(s): fd96c74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def ai_article_generator(
12
  ):
13
  prompt = f"Write a {text_type} about the topic in about {length} words: {topic}"
14
  print(prompt)
15
- ai_text = generate(f"Write an article about the topic: {text}", ai_model, api)
16
  ai_text = ai_text.choices[0].message.content
17
  return ai_text
18
 
 
12
  ):
13
  prompt = f"Write a {text_type} about the topic in about {length} words: {topic}"
14
  print(prompt)
15
+ ai_text = generate(f"Write an article about the topic: {prompt}", ai_model, api)
16
  ai_text = ai_text.choices[0].message.content
17
  return ai_text
18