Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,14 +106,17 @@ with gr.Blocks(title="Seed-X") as demo:
|
|
| 106 |
label="Target Language"
|
| 107 |
)
|
| 108 |
with gr.Row():
|
| 109 |
-
translate_btn = gr.Button("Translate", variant="primary")
|
| 110 |
-
translate_btn.style(
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
)
|
| 116 |
-
|
|
|
|
|
|
|
|
|
|
| 117 |
source_text = gr.Textbox(
|
| 118 |
label="Input Text",
|
| 119 |
placeholder="Please enter the text to translate...",
|
|
|
|
| 106 |
label="Target Language"
|
| 107 |
)
|
| 108 |
with gr.Row():
|
| 109 |
+
# translate_btn = gr.Button("Translate", variant="primary")
|
| 110 |
+
# translate_btn.style(
|
| 111 |
+
# full_width=False,
|
| 112 |
+
# full_height=False,
|
| 113 |
+
# text_color="white",
|
| 114 |
+
# bg_color="#4169E1"
|
| 115 |
+
# )
|
| 116 |
+
with gr.Blocks():
|
| 117 |
+
translate_btn = gr.Button("Translate", variant="primary")
|
| 118 |
+
translate_btn.style(full_width=False, full_height=False, text_color="white", bg_color="#4169E1")
|
| 119 |
+
with gr.Row():
|
| 120 |
source_text = gr.Textbox(
|
| 121 |
label="Input Text",
|
| 122 |
placeholder="Please enter the text to translate...",
|