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