parrotmaker commited on
Commit
28c55a1
·
verified ·
1 Parent(s): 5627e5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -1,6 +1,8 @@
1
  import gradio as gr
2
 
3
- with gr.Blocks() as app:
4
- gr.HTML("<script>window.location.href = '/static/index.html'</script>")
5
-
6
- app.launch()
 
 
 
1
  import gradio as gr
2
 
3
+ # Dummy interface to keep the Space alive, but not display any UI
4
+ gr.Interface(fn=lambda: None, inputs=[], outputs=[]).launch(
5
+ inline=False, # <- This disables the Gradio UI shell
6
+ server_name="0.0.0.0",
7
+ server_port=7860
8
+ )