Skip to content

Commit 8fea7a6

Browse files
committed
feat: add gradio only file
1 parent c322b68 commit 8fea7a6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

demo.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import gradio as gr
2+
from languia.block_arena import demo
3+
from languia import config
4+
5+
# Ensure static paths are set correctly
6+
gr.set_static_paths(paths=[config.assets_absolute_path])
7+
8+
# Launch the Gradio app directly
9+
if __name__ == "__main__":
10+
demo.launch(
11+
root_path="/arene",
12+
server_name="0.0.0.0",
13+
server_port=7860, # Default Gradio port
14+
share=False, # Set to True if you want to create a shareable link
15+
)

0 commit comments

Comments
 (0)