Update server.py
Browse files
server.py
CHANGED
@@ -1127,7 +1127,7 @@ def run_fastapi():
|
|
1127 |
log_level=LOG_LEVEL.lower()
|
1128 |
)
|
1129 |
|
1130 |
-
# Usage in
|
1131 |
if __name__ == "__main__":
|
1132 |
if os.getenv("SPACE_ID") or os.getenv("GRADIO_SERVER_NAME"):
|
1133 |
# HuggingFace Spaces - start FastAPI in background, Gradio in foreground
|
|
|
1127 |
log_level=LOG_LEVEL.lower()
|
1128 |
)
|
1129 |
|
1130 |
+
# Usage in main section:
|
1131 |
if __name__ == "__main__":
|
1132 |
if os.getenv("SPACE_ID") or os.getenv("GRADIO_SERVER_NAME"):
|
1133 |
# HuggingFace Spaces - start FastAPI in background, Gradio in foreground
|