Publish relight five-model comparison
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import json
|
|
|
|
| 2 |
from functools import lru_cache
|
| 3 |
|
| 4 |
import gradio as gr
|
|
@@ -76,4 +77,4 @@ with gr.Blocks(title="Relight Five-Model Comparison") as demo:
|
|
| 76 |
|
| 77 |
|
| 78 |
if __name__ == "__main__":
|
| 79 |
-
demo.launch()
|
|
|
|
| 1 |
import json
|
| 2 |
+
import os
|
| 3 |
from functools import lru_cache
|
| 4 |
|
| 5 |
import gradio as gr
|
|
|
|
| 77 |
|
| 78 |
|
| 79 |
if __name__ == "__main__":
|
| 80 |
+
demo.launch(server_name="0.0.0.0", server_port=int(os.environ.get("PORT", 7860)))
|