Spaces:
Runtime error
Runtime error
Commit
•
a3134c2
1
Parent(s):
8b34db9
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def generate_response(dialog):
|
|
15 |
# 创建Gradio接口
|
16 |
iface = gr.Interface(
|
17 |
fn=generate_response,
|
18 |
-
inputs=gr.
|
19 |
outputs="text",
|
20 |
title="GPT-2 Conversational AI",
|
21 |
description="Enter your dialog, one message per line. The model will generate a response based on the entire conversation."
|
|
|
15 |
# 创建Gradio接口
|
16 |
iface = gr.Interface(
|
17 |
fn=generate_response,
|
18 |
+
inputs=gr.Textbox(lines=7, placeholder="Enter your dialog here..."),
|
19 |
outputs="text",
|
20 |
title="GPT-2 Conversational AI",
|
21 |
description="Enter your dialog, one message per line. The model will generate a response based on the entire conversation."
|