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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -13,7 +13,6 @@ def ai_article_generator(
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
 
19
  def humanize(
 
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
  return ai_text
17
 
18
  def humanize(