Spaces:
Build error
Build error
Update app.py
Browse files
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])
|