Arnaudding001 commited on
Commit
9fc36a6
·
1 Parent(s): ef49885

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -17,10 +17,11 @@ title = "法语语法修改App"
17
 
18
  description = "将需要校对的文字贴在左侧方框中,点击Submit,稍等片刻,右侧Output将给出修改后的文本,字数限制300字。"
19
 
20
- gr.Interface(
21
- inference,
22
- gr.inputs.Textbox(type="text", label="Input"),
23
- gr.outputs.Textbox(type="text", label="Output"),
24
  title=title,
25
  description=description,
26
- ).launch()
 
 
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)