Spaces:
Sleeping
Sleeping
Create SubtittleFixer.py
Browse files- SubtittleFixer.py +13 -0
SubtittleFixer.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def greet(name):
|
| 4 |
+
return f"{name} 你好!"
|
| 5 |
+
|
| 6 |
+
iface = gr.Interface(
|
| 7 |
+
fn=greet,
|
| 8 |
+
inputs=gr.Textbox(placeholder="請輸入你的名字..."),
|
| 9 |
+
outputs=gr.Textbox(placeholder="回覆..."),
|
| 10 |
+
title="簡單的問候語程式"
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
iface.launch()
|