陈泽通 commited on
Commit
bcf94e4
·
1 Parent(s): f4ed067

fix:解决网络错误问题

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,4 +22,4 @@ src_lang = gr.Dropdown(label="源语言",choices=["en","zh"])
22
  tgt_lang = gr.Dropdown(label="目标语言",choices=["en","zh"])
23
  output_text = gr.Textbox(lines=5,label="翻译文本",placeholder="翻译文本")
24
  demo=gr.Interface(fn=greet, inputs=[text,src_lang,tgt_lang], outputs=output_text)
25
- demo.launch()
 
22
  tgt_lang = gr.Dropdown(label="目标语言",choices=["en","zh"])
23
  output_text = gr.Textbox(lines=5,label="翻译文本",placeholder="翻译文本")
24
  demo=gr.Interface(fn=greet, inputs=[text,src_lang,tgt_lang], outputs=output_text)
25
+ demo.launch(share=True)