Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|