Mustafa Al Hamad commited on
Commit
191ff1c
·
1 Parent(s): c2563b8

Create new file

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def run():
4
+ SERVER_ADDRESS = ("209.250.239.165", 27015)
5
+ PASSWORD = "12345"
6
+ with RCON(SERVER_ADDRESS, PASSWORD) as rcon:
7
+ msg = (rcon("status"))
8
+ return str(msg)
9
+
10
+ with gr.Blocks() as Main:
11
+ marky = gr.Markdown("""
12
+ # ⏳Loading...⏳
13
+ """)
14
+ Main.load(fn=run,inputs=None,outputs=marky)
15
+ Main.launch(debug=True)