Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,8 +6,7 @@ def gpt(api_key):
|
|
| 6 |
model="gpt-3.5-turbo",
|
| 7 |
messages=[{"role": "user", "content": "Generate a fake news story"}]
|
| 8 |
)
|
| 9 |
-
|
| 10 |
-
return completion.choices[0].message.content
|
| 11 |
|
| 12 |
demo = gr.Interface(fn=gpt, inputs="text", outputs="text")
|
| 13 |
|
|
|
|
| 6 |
model="gpt-3.5-turbo",
|
| 7 |
messages=[{"role": "user", "content": "Generate a fake news story"}]
|
| 8 |
)
|
| 9 |
+
return completion.choices[0].message.content
|
|
|
|
| 10 |
|
| 11 |
demo = gr.Interface(fn=gpt, inputs="text", outputs="text")
|
| 12 |
|