jake2004 commited on
Commit
3dada44
·
verified ·
1 Parent(s): a4f0007

Delete gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +0 -20
gradio_app.py DELETED
@@ -1,20 +0,0 @@
1
- import gradio as gr
2
- import subprocess
3
-
4
- # Start Flask Server in Background
5
- subprocess.Popen(["python3", "app.py"])
6
-
7
- # Define Gradio UI
8
- def display_video_stream(video_url):
9
- stream_url = f"http://192.168.107.15:8080/video_feed?video_url={video_url}"
10
- return f'<img src="{stream_url}" width="640px">'
11
-
12
- # Gradio interface
13
- iface = gr.Interface(
14
- fn=display_video_stream,
15
- inputs=gr.Textbox(label="Enter IP Webcam URL"),
16
- outputs=gr.HTML(),
17
- live=True
18
- )
19
-
20
- iface.launch(server_name="0.0.0.0", server_port=7860)