mployd-engineering commited on
Commit
169a1b7
·
verified ·
1 Parent(s): db9b6b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -176,10 +176,9 @@ with gr.Blocks(title="CV & Job Matcher") as demo:
176
  # )
177
 
178
 
179
- # --- Launch ---
180
- if __name__ == "__main__":
181
- load_model()
182
- # queue() is essential for processing concurrent requests on Spaces
183
- demo.queue()
184
- # Use 0.0.0.0 for hosting environments
185
- demo.launch(server_name="0.0.0.0")
 
176
  # )
177
 
178
 
179
+ # --- Launch ---
180
+ if __name__ == "__main__":
181
+ load_model()
182
+ # queue() with api_open=True enables HTTP POST API access
183
+ demo.queue(api_open=True)
184
+ demo.launch(server_name="0.0.0.0")