Commit ·
044d3e8
1
Parent(s): 826b9dc
changed to dice game
Browse files- app.py +3 -2
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -682,7 +682,8 @@ if (document.readyState === 'loading') {
|
|
| 682 |
</script>
|
| 683 |
"""
|
| 684 |
|
| 685 |
-
with gr.Blocks(title=APP_TITLE,
|
|
|
|
| 686 |
state = gr.State()
|
| 687 |
gr.HTML(
|
| 688 |
"""
|
|
@@ -732,4 +733,4 @@ with gr.Blocks(title=APP_TITLE, head=HEAD_SCRIPT, theme=gr.themes.Soft(), css=CS
|
|
| 732 |
|
| 733 |
|
| 734 |
if __name__ == "__main__":
|
| 735 |
-
demo.launch()
|
|
|
|
| 682 |
</script>
|
| 683 |
"""
|
| 684 |
|
| 685 |
+
with gr.Blocks(title=APP_TITLE, theme=gr.themes.Soft(), css=CSS, js="""function() { document.documentElement.classList.add('dark'); }""") as demo:
|
| 686 |
+
gr.HTML(HEAD_SCRIPT)
|
| 687 |
state = gr.State()
|
| 688 |
gr.HTML(
|
| 689 |
"""
|
|
|
|
| 733 |
|
| 734 |
|
| 735 |
if __name__ == "__main__":
|
| 736 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|
requirements.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
-
gradio
|
|
|
|
| 2 |
huggingface_hub<0.25.0
|
| 3 |
requests>=2.32.0
|
|
|
|
| 1 |
+
gradio==4.44.1
|
| 2 |
+
jinja2<3.1.5
|
| 3 |
huggingface_hub<0.25.0
|
| 4 |
requests>=2.32.0
|