Spaces:
Runtime error
Runtime error
Commit ·
9fc36a6
1
Parent(s): ef49885
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,10 +17,11 @@ title = "法语语法修改App"
|
|
| 17 |
|
| 18 |
description = "将需要校对的文字贴在左侧方框中,点击Submit,稍等片刻,右侧Output将给出修改后的文本,字数限制300字。"
|
| 19 |
|
| 20 |
-
gr.Interface(
|
| 21 |
-
inference,
|
| 22 |
-
gr.
|
| 23 |
-
|
| 24 |
title=title,
|
| 25 |
description=description,
|
| 26 |
-
)
|
|
|
|
|
|
| 17 |
|
| 18 |
description = "将需要校对的文字贴在左侧方框中,点击Submit,稍等片刻,右侧Output将给出修改后的文本,字数限制300字。"
|
| 19 |
|
| 20 |
+
demo = gr.Interface(
|
| 21 |
+
fn = inference,
|
| 22 |
+
inputs=gr.Textbox(lines = 15, label="Input"),
|
| 23 |
+
outputs = "text",
|
| 24 |
title=title,
|
| 25 |
description=description,
|
| 26 |
+
)
|
| 27 |
+
demo.launch(share=True)
|