Fahimeh Orvati Nia
commited on
Commit
·
452a7f2
1
Parent(s):
5b8812f
app.py
CHANGED
|
@@ -4,6 +4,7 @@ from pathlib import Path
|
|
| 4 |
from wrapper import run_pipeline_on_image
|
| 5 |
from PIL import Image
|
| 6 |
|
|
|
|
| 7 |
|
| 8 |
def process(file_path):
|
| 9 |
if not file_path:
|
|
@@ -87,4 +88,4 @@ with gr.Blocks() as demo:
|
|
| 87 |
)
|
| 88 |
|
| 89 |
if __name__ == "__main__":
|
| 90 |
-
demo.launch()
|
|
|
|
| 4 |
from wrapper import run_pipeline_on_image
|
| 5 |
from PIL import Image
|
| 6 |
|
| 7 |
+
import os
|
| 8 |
|
| 9 |
def process(file_path):
|
| 10 |
if not file_path:
|
|
|
|
| 88 |
)
|
| 89 |
|
| 90 |
if __name__ == "__main__":
|
| 91 |
+
demo.launch(server_name="0.0.0.0", server_port=int(os.environ.get("PORT", 7860)))
|