Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,11 +28,11 @@ def generate_tweet(prompt):
|
|
28 |
# Gradio Interface
|
29 |
interface = gr.Interface(
|
30 |
fn=generate_tweet,
|
31 |
-
inputs=gr.
|
32 |
-
outputs=gr.
|
33 |
title="AI Tweet Generator",
|
34 |
description="Enter a topic or phrase, and the AI will generate a creative tweet. Powered by a fine-tuned GPT-2 model."
|
35 |
)
|
36 |
|
37 |
# Launch the app
|
38 |
-
interface.launch()
|
|
|
28 |
# Gradio Interface
|
29 |
interface = gr.Interface(
|
30 |
fn=generate_tweet,
|
31 |
+
inputs=gr.Textbox(label="Prompt", placeholder="Enter a topic for the tweet (e.g., AI, technology)"),
|
32 |
+
outputs=gr.Textbox(label="Generated Tweet"),
|
33 |
title="AI Tweet Generator",
|
34 |
description="Enter a topic or phrase, and the AI will generate a creative tweet. Powered by a fine-tuned GPT-2 model."
|
35 |
)
|
36 |
|
37 |
# Launch the app
|
38 |
+
interface.launch()
|