Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -347,22 +347,9 @@ def toggle_language(lang: str):
|
|
| 347 |
)
|
| 348 |
|
| 349 |
|
| 350 |
-
CUSTOM_CSS = """
|
| 351 |
-
body {
|
| 352 |
-
font-family: 'Rubik', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
|
| 353 |
-
}
|
| 354 |
-
details > summary {
|
| 355 |
-
cursor: pointer;
|
| 356 |
-
}
|
| 357 |
-
.gradio-container .prose p {
|
| 358 |
-
margin-bottom: 0.5rem;
|
| 359 |
-
}
|
| 360 |
-
"""
|
| 361 |
-
|
| 362 |
-
|
| 363 |
def build_demo() -> gr.Blocks:
|
| 364 |
localized = labels[DEFAULT_LANG]
|
| 365 |
-
with gr.Blocks(
|
| 366 |
lang_state = gr.State(DEFAULT_LANG)
|
| 367 |
chat_state = gr.State([])
|
| 368 |
|
|
@@ -439,5 +426,17 @@ def build_demo() -> gr.Blocks:
|
|
| 439 |
|
| 440 |
demo = build_demo()
|
| 441 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 442 |
if __name__ == "__main__":
|
| 443 |
-
demo.queue().launch()
|
|
|
|
| 347 |
)
|
| 348 |
|
| 349 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 350 |
def build_demo() -> gr.Blocks:
|
| 351 |
localized = labels[DEFAULT_LANG]
|
| 352 |
+
with gr.Blocks(title="Hebrew Math Tutor") as demo:
|
| 353 |
lang_state = gr.State(DEFAULT_LANG)
|
| 354 |
chat_state = gr.State([])
|
| 355 |
|
|
|
|
| 426 |
|
| 427 |
demo = build_demo()
|
| 428 |
|
| 429 |
+
CUSTOM_CSS = """
|
| 430 |
+
body {
|
| 431 |
+
font-family: 'Rubik', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
|
| 432 |
+
}
|
| 433 |
+
details > summary {
|
| 434 |
+
cursor: pointer;
|
| 435 |
+
}
|
| 436 |
+
.gradio-container .prose p {
|
| 437 |
+
margin-bottom: 0.5rem;
|
| 438 |
+
}
|
| 439 |
+
"""
|
| 440 |
+
|
| 441 |
if __name__ == "__main__":
|
| 442 |
+
demo.queue().launch(css=CUSTOM_CSS)
|