Spaces:
Running
Running
updating demo.launch()
Browse files
app.py
CHANGED
|
@@ -14,7 +14,6 @@ from optimize_demo import (
|
|
| 14 |
initialize_plate_metadata,
|
| 15 |
load_default_fov,
|
| 16 |
create_gradio_interface,
|
| 17 |
-
Config,
|
| 18 |
)
|
| 19 |
|
| 20 |
|
|
@@ -40,10 +39,7 @@ def main():
|
|
| 40 |
print("Open your browser to the URL shown below")
|
| 41 |
print("=" * 60 + "\n")
|
| 42 |
|
| 43 |
-
demo.launch(
|
| 44 |
-
server_name="0.0.0.0", # Required for HuggingFace Spaces
|
| 45 |
-
server_port=7860, # HuggingFace Spaces default port
|
| 46 |
-
)
|
| 47 |
|
| 48 |
|
| 49 |
if __name__ == "__main__":
|
|
|
|
| 14 |
initialize_plate_metadata,
|
| 15 |
load_default_fov,
|
| 16 |
create_gradio_interface,
|
|
|
|
| 17 |
)
|
| 18 |
|
| 19 |
|
|
|
|
| 39 |
print("Open your browser to the URL shown below")
|
| 40 |
print("=" * 60 + "\n")
|
| 41 |
|
| 42 |
+
demo.launch() # HuggingFace Spaces handles server configuration automatically
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
if __name__ == "__main__":
|