Kevin676 commited on
Commit
1dfb18f
·
1 Parent(s): 8f3256e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,14 +65,14 @@ with gr.Blocks() as demo:
65
 
66
  with gr.Row().style(equal_height=True):
67
  inp1 = gr.Textbox(label = "您要翻译的中文内容", lines=1)
68
- button = gr.Button("翻译一下")
69
  out1 = gr.Textbox(label = "翻译后的英文内容", lines=1)
70
 
71
  button.click(translate, [inp1], [out1])
72
 
73
  with gr.Row().style(equal_height=True):
74
  inp2 = out1
75
- btn1 = gr.Button("让您的提示词更详细一下吧")
76
  out2 = gr.Textbox(label = "翻译后的英文内容", lines=1)
77
 
78
  btn1.click(infer, [inp2], [out2])
 
65
 
66
  with gr.Row().style(equal_height=True):
67
  inp1 = gr.Textbox(label = "您要翻译的中文内容", lines=1)
68
+ button = gr.Button("翻译一下吧")
69
  out1 = gr.Textbox(label = "翻译后的英文内容", lines=1)
70
 
71
  button.click(translate, [inp1], [out1])
72
 
73
  with gr.Row().style(equal_height=True):
74
  inp2 = out1
75
+ btn1 = gr.Button("让您的提示词更详细一些吧")
76
  out2 = gr.Textbox(label = "翻译后的英文内容", lines=1)
77
 
78
  btn1.click(infer, [inp2], [out2])