Spaces:
Running
Running
Z User commited on
Commit Β·
d234c81
1
Parent(s): 48b0407
π Fix: Correct import name in create_app() - use get_app() from routes
Browse files- Fixed ImportError: cannot import name 'create_routes' from 'code.server.routes'
- Changed to use correct function name: get_app()
- Server now starts correctly
- code/server/__init__.py +2 -2
code/server/__init__.py
CHANGED
|
@@ -23,9 +23,9 @@ logger = logging.getLogger(__name__)
|
|
| 23 |
|
| 24 |
def create_app() -> gr.Server:
|
| 25 |
"""Create and configure the Gradio Server with all routes."""
|
| 26 |
-
from code.server.routes import
|
| 27 |
|
| 28 |
-
app =
|
| 29 |
return app
|
| 30 |
|
| 31 |
|
|
|
|
| 23 |
|
| 24 |
def create_app() -> gr.Server:
|
| 25 |
"""Create and configure the Gradio Server with all routes."""
|
| 26 |
+
from code.server.routes import get_app
|
| 27 |
|
| 28 |
+
app = get_app()
|
| 29 |
return app
|
| 30 |
|
| 31 |
|