Spaces:
Sleeping
Sleeping
Update article_generator.py
Browse files- article_generator.py +2 -0
article_generator.py
CHANGED
|
@@ -76,6 +76,8 @@ def generate_article(editable_output2):
|
|
| 76 |
)
|
| 77 |
result = response.choices[0]["message"]["content"]
|
| 78 |
|
|
|
|
|
|
|
| 79 |
return result
|
| 80 |
|
| 81 |
with gr.Blocks() as app:
|
|
|
|
| 76 |
)
|
| 77 |
result = response.choices[0]["message"]["content"]
|
| 78 |
|
| 79 |
+
with open("output3.txt", "w", encoding="utf-8") as f:
|
| 80 |
+
f.write(result)
|
| 81 |
return result
|
| 82 |
|
| 83 |
with gr.Blocks() as app:
|