Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1201,15 +1201,15 @@ gradio_asgi_app = demo.launch(share=False, inbrowser=False, server_name="0.0.0.0
|
|
1201 |
logging.debug(f"Gradio version: {gr.__version__}")
|
1202 |
logging.debug(f"FastAPI version: {fastapi.__version__}")
|
1203 |
|
1204 |
-
# Mount the Gradio ASGI app at "/gradio"
|
1205 |
-
app.mount("/gradio", gradio_asgi_app)
|
1206 |
|
1207 |
-
# create a static directory to store the static files
|
1208 |
-
static_dir = Path('./static')
|
1209 |
-
static_dir.mkdir(parents=True, exist_ok=True)
|
1210 |
|
1211 |
-
# mount FastAPI StaticFiles server
|
1212 |
-
app.mount("/static", StaticFiles(directory=static_dir), name="static")
|
1213 |
|
1214 |
# Dynamically check for the Gradio asset directory
|
1215 |
# gradio_assets_path = os.path.join(os.path.dirname(gr.__file__), "static")
|
|
|
1201 |
logging.debug(f"Gradio version: {gr.__version__}")
|
1202 |
logging.debug(f"FastAPI version: {fastapi.__version__}")
|
1203 |
|
1204 |
+
# # Mount the Gradio ASGI app at "/gradio"
|
1205 |
+
# app.mount("/gradio", gradio_asgi_app)
|
1206 |
|
1207 |
+
# # create a static directory to store the static files
|
1208 |
+
# static_dir = Path('./static')
|
1209 |
+
# static_dir.mkdir(parents=True, exist_ok=True)
|
1210 |
|
1211 |
+
# # mount FastAPI StaticFiles server
|
1212 |
+
# app.mount("/static", StaticFiles(directory=static_dir), name="static")
|
1213 |
|
1214 |
# Dynamically check for the Gradio asset directory
|
1215 |
# gradio_assets_path = os.path.join(os.path.dirname(gr.__file__), "static")
|