minko186 commited on
Commit
30dd3aa
·
verified ·
1 Parent(s): ac473c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def humanize(
13
  length_penalty=1,
14
  ):
15
  ai_text = generate(f"Write an article about the topic: {text}")
16
- ai_text = ai_text.choices[0].message
17
  print(f"AI Generated: {ai_text}")
18
  result = client.predict(
19
  text=text,
 
13
  length_penalty=1,
14
  ):
15
  ai_text = generate(f"Write an article about the topic: {text}")
16
+ ai_text = ai_text.choices[0].message.content
17
  print(f"AI Generated: {ai_text}")
18
  result = client.predict(
19
  text=text,