Gradio 6.5: move css to launch(), remove show_copy_button
Browse files
app.py
CHANGED
|
@@ -198,7 +198,7 @@ def preload_model():
|
|
| 198 |
def build_ui() -> gr.Blocks:
|
| 199 |
dataset_choices = list(DEMO_DATASETS.keys())
|
| 200 |
|
| 201 |
-
with gr.Blocks(title="DataSense E2B"
|
| 202 |
with gr.Column(elem_id="ds-header"):
|
| 203 |
gr.HTML('<div id="ds-badge">Execution-verified · Gemma / DataBench</div>')
|
| 204 |
gr.Markdown(
|
|
@@ -269,7 +269,7 @@ Writes Python, runs it on **your data**, reads real errors, returns verified **A
|
|
| 269 |
with gr.Tab("📝 Summary"):
|
| 270 |
summary_out = gr.Markdown()
|
| 271 |
with gr.Tab("🤖 Raw output"):
|
| 272 |
-
raw_out = gr.Textbox(lines=18, max_lines=40
|
| 273 |
|
| 274 |
data_mode.change(_toggle_data_inputs, data_mode, [dataset, upload])
|
| 275 |
|
|
@@ -294,4 +294,4 @@ except Exception as exc:
|
|
| 294 |
print(f"Startup preload skipped (will load on first run): {exc}")
|
| 295 |
|
| 296 |
if __name__ == "__main__":
|
| 297 |
-
demo.queue(max_size=8).launch(theme=build_theme())
|
|
|
|
| 198 |
def build_ui() -> gr.Blocks:
|
| 199 |
dataset_choices = list(DEMO_DATASETS.keys())
|
| 200 |
|
| 201 |
+
with gr.Blocks(title="DataSense E2B") as demo:
|
| 202 |
with gr.Column(elem_id="ds-header"):
|
| 203 |
gr.HTML('<div id="ds-badge">Execution-verified · Gemma / DataBench</div>')
|
| 204 |
gr.Markdown(
|
|
|
|
| 269 |
with gr.Tab("📝 Summary"):
|
| 270 |
summary_out = gr.Markdown()
|
| 271 |
with gr.Tab("🤖 Raw output"):
|
| 272 |
+
raw_out = gr.Textbox(lines=18, max_lines=40)
|
| 273 |
|
| 274 |
data_mode.change(_toggle_data_inputs, data_mode, [dataset, upload])
|
| 275 |
|
|
|
|
| 294 |
print(f"Startup preload skipped (will load on first run): {exc}")
|
| 295 |
|
| 296 |
if __name__ == "__main__":
|
| 297 |
+
demo.queue(max_size=8).launch(theme=build_theme(), css=CUSTOM_CSS)
|