Spaces:
Runtime error
Runtime error
Commit ·
eed9c41
1
Parent(s): 3106b58
v2
Browse files
app.py
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
return "
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def generate_reply(prompt):
|
| 4 |
+
return "這是回覆:" + prompt # 你可以換成你自己的模型邏輯
|
| 5 |
|
| 6 |
+
iface = gr.Interface(
|
| 7 |
+
fn=generate_reply,
|
| 8 |
+
inputs="text",
|
| 9 |
+
outputs="text"
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
iface.launch()
|