Spaces:
Sleeping
Sleeping
Commit ·
b406c6e
1
Parent(s): 6afdaa3
Mounting Fix
Browse files
app.py
CHANGED
|
@@ -1174,17 +1174,11 @@ with gr.Blocks(
|
|
| 1174 |
outputs=[single_output]
|
| 1175 |
)
|
| 1176 |
|
| 1177 |
-
|
| 1178 |
|
| 1179 |
-
|
| 1180 |
-
# ==============================================================================
|
| 1181 |
-
# This block is for LOCAL TESTING ONLY.
|
| 1182 |
-
# Hugging Face Spaces IGNORES this when you deploy with 'sdk: fastapi'.
|
| 1183 |
-
# It is safe and correct to keep it in your deployment file.
|
| 1184 |
-
# ==============================================================================
|
| 1185 |
if __name__ == "__main__":
|
| 1186 |
uvicorn.run(
|
| 1187 |
-
|
| 1188 |
host="0.0.0.0",
|
| 1189 |
port=7860
|
| 1190 |
)
|
|
|
|
| 1174 |
outputs=[single_output]
|
| 1175 |
)
|
| 1176 |
|
| 1177 |
+
gradio_app = gr.mount_gradio_app(app, demo, path="/")
|
| 1178 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1179 |
if __name__ == "__main__":
|
| 1180 |
uvicorn.run(
|
| 1181 |
+
gradio_app,
|
| 1182 |
host="0.0.0.0",
|
| 1183 |
port=7860
|
| 1184 |
)
|