Spaces:
Runtime error
Runtime error
Hector Lopez
commited on
Commit
·
9a933a3
1
Parent(s):
84c5052
Fixed get_first_available_port()
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
import PIL
|
| 3 |
import torch
|
| 4 |
|
|
@@ -45,7 +46,7 @@ examples = [
|
|
| 45 |
]
|
| 46 |
|
| 47 |
gr.close_all()
|
| 48 |
-
port =
|
| 49 |
|
| 50 |
gr.Interface(
|
| 51 |
waste_detector_interface,
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from gradio.networking import get_first_available_port
|
| 3 |
import PIL
|
| 4 |
import torch
|
| 5 |
|
|
|
|
| 46 |
]
|
| 47 |
|
| 48 |
gr.close_all()
|
| 49 |
+
port = get_first_available_port(1000, 9000)
|
| 50 |
|
| 51 |
gr.Interface(
|
| 52 |
waste_detector_interface,
|