Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,9 +43,9 @@ def punct(txt):
|
|
43 |
return ''.join(out_text)
|
44 |
|
45 |
|
46 |
-
interface = gr.Interface(fn=punct,
|
47 |
-
inputs=gr.inputs.Textbox(lines=
|
48 |
-
outputs=gr.outputs.Textbox(label='标点结果:'),
|
49 |
-
title='chinese classical texts punctuation'
|
50 |
-
|
51 |
interface.launch()
|
|
|
43 |
return ''.join(out_text)
|
44 |
|
45 |
|
46 |
+
interface = gr.Interface(fn=punct,
|
47 |
+
inputs=gr.inputs.Textbox(lines=5, label='输入需要标点的文本:'),
|
48 |
+
outputs=gr.outputs.Textbox(label='标点结果:'),
|
49 |
+
title='chinese classical texts punctuation'
|
50 |
+
)
|
51 |
interface.launch()
|