Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,8 +17,8 @@ def generate_text(prefix: str, suffix: str) -> str:
|
|
| 17 |
# 定义Gradio接口
|
| 18 |
iface = gr.Interface(
|
| 19 |
fn=generate_text,
|
| 20 |
-
inputs=[gr.
|
| 21 |
-
gr.
|
| 22 |
outputs=gr.outputs.Textbox(),
|
| 23 |
)
|
| 24 |
|
|
|
|
| 17 |
# 定义Gradio接口
|
| 18 |
iface = gr.Interface(
|
| 19 |
fn=generate_text,
|
| 20 |
+
inputs=[gr.Textbox(lines=10, label="Prefix"),
|
| 21 |
+
gr.Textbox(lines=10, label="Suffix")],
|
| 22 |
outputs=gr.outputs.Textbox(),
|
| 23 |
)
|
| 24 |
|