sohamchitimali commited on
Commit
6afdaa3
·
1 Parent(s): 6aa3cdc

Mounting Fix

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -1174,4 +1174,17 @@ with gr.Blocks(
1174
  outputs=[single_output]
1175
  )
1176
 
1177
- gr.mount_gradio_app(app, demo, path="/")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1174
  outputs=[single_output]
1175
  )
1176
 
1177
+ app = gr.mount_gradio_app(app, demo, path="/")
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
+ app,
1188
+ host="0.0.0.0",
1189
+ port=7860
1190
+ )