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