Manasa1 commited on
Commit
eafd83e
·
verified ·
1 Parent(s): cfc8102

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.inputs.Textbox(label="Prompt", placeholder="Enter a topic for the tweet (e.g., AI, technology)"),
32
- outputs=gr.outputs.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()
 
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()