Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -230,7 +230,7 @@ theme = gr.themes.Soft(
|
|
| 230 |
button_primary_text_color="white",
|
| 231 |
)
|
| 232 |
|
| 233 |
-
with gr.Blocks(
|
| 234 |
# Header
|
| 235 |
gr.HTML("""
|
| 236 |
<div class="main-header">
|
|
@@ -282,7 +282,6 @@ with gr.Blocks(theme=theme, css=CSS, title="Text-to-SQL Demo") as demo:
|
|
| 282 |
label="Generated SQL",
|
| 283 |
lines=3,
|
| 284 |
elem_classes=["sql-output"],
|
| 285 |
-
show_copy_button=True,
|
| 286 |
)
|
| 287 |
raw_out = gr.Textbox(
|
| 288 |
label="Raw Model Output (Structured Tokens)",
|
|
@@ -334,4 +333,4 @@ with gr.Blocks(theme=theme, css=CSS, title="Text-to-SQL Demo") as demo:
|
|
| 334 |
</div>
|
| 335 |
""")
|
| 336 |
|
| 337 |
-
demo.launch()
|
|
|
|
| 230 |
button_primary_text_color="white",
|
| 231 |
)
|
| 232 |
|
| 233 |
+
with gr.Blocks(title="Text-to-SQL Demo") as demo:
|
| 234 |
# Header
|
| 235 |
gr.HTML("""
|
| 236 |
<div class="main-header">
|
|
|
|
| 282 |
label="Generated SQL",
|
| 283 |
lines=3,
|
| 284 |
elem_classes=["sql-output"],
|
|
|
|
| 285 |
)
|
| 286 |
raw_out = gr.Textbox(
|
| 287 |
label="Raw Model Output (Structured Tokens)",
|
|
|
|
| 333 |
</div>
|
| 334 |
""")
|
| 335 |
|
| 336 |
+
demo.launch(theme=theme, css=CSS)
|