Spaces:
Sleeping
Sleeping
Commit
·
26d2810
1
Parent(s):
7e21dc1
trans
Browse files
app.py
CHANGED
|
@@ -14,8 +14,8 @@ def generate_text(prompt):
|
|
| 14 |
# Create the Gradio interface
|
| 15 |
iface = gr.Interface(
|
| 16 |
fn=generate_text,
|
| 17 |
-
|
| 18 |
-
|
| 19 |
title="Text Generation",
|
| 20 |
description="Enter a prompt and the model will generate text based on it."
|
| 21 |
)
|
|
|
|
| 14 |
# Create the Gradio interface
|
| 15 |
iface = gr.Interface(
|
| 16 |
fn=generate_text,
|
| 17 |
+
input=gr.inputs.Textbox(lines=2, placeholder="Enter your prompt here..."),
|
| 18 |
+
output="text",
|
| 19 |
title="Text Generation",
|
| 20 |
description="Enter a prompt and the model will generate text based on it."
|
| 21 |
)
|