Spaces:
Running
Running
rajeshthangaraj1
commited on
Commit
•
20ef51d
1
Parent(s):
b64c7ac
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,10 @@ def generate_text(prompt):
|
|
10 |
return results[0]['generated_text']
|
11 |
|
12 |
# Set up the Gradio interface
|
|
|
13 |
interface = gr.Interface(
|
14 |
fn=generate_text,
|
15 |
-
inputs=gr.Textbox(lines=2, placeholder="Type something here..."),
|
16 |
outputs='text',
|
17 |
title="Simple Generative AI",
|
18 |
description="Type in a prompt and get a continuation from GPT-2!"
|
|
|
10 |
return results[0]['generated_text']
|
11 |
|
12 |
# Set up the Gradio interface
|
13 |
+
# Updated to use gr.Textbox directly instead of gr.inputs.Textbox
|
14 |
interface = gr.Interface(
|
15 |
fn=generate_text,
|
16 |
+
inputs=gr.Textbox(lines=2, placeholder="Type something here..."),
|
17 |
outputs='text',
|
18 |
title="Simple Generative AI",
|
19 |
description="Type in a prompt and get a continuation from GPT-2!"
|