Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -113,9 +113,16 @@ with gr.Blocks(title="Seed-X") as demo:
|
|
| 113 |
# text_color="white",
|
| 114 |
# bg_color="#4169E1"
|
| 115 |
# )
|
| 116 |
-
with gr.Blocks():
|
| 117 |
translate_btn = gr.Button("Translate", variant="primary")
|
| 118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
with gr.Row():
|
| 120 |
source_text = gr.Textbox(
|
| 121 |
label="Input Text",
|
|
|
|
| 113 |
# text_color="white",
|
| 114 |
# bg_color="#4169E1"
|
| 115 |
# )
|
| 116 |
+
with gr.Blocks() as demo:
|
| 117 |
translate_btn = gr.Button("Translate", variant="primary")
|
| 118 |
+
|
| 119 |
+
demo.load(None, None, None, _js=f"""
|
| 120 |
+
() => {{
|
| 121 |
+
const root = document.querySelectorAll("button")[0];
|
| 122 |
+
root.style.color = "white";
|
| 123 |
+
root.style.backgroundColor = "#4169E1";
|
| 124 |
+
}}
|
| 125 |
+
""")
|
| 126 |
with gr.Row():
|
| 127 |
source_text = gr.Textbox(
|
| 128 |
label="Input Text",
|