prthm11 commited on
Commit
659f1ea
·
verified ·
1 Parent(s): b3ff5e1

Update escalation_server.py

Browse files
Files changed (1) hide show
  1. escalation_server.py +9 -1
escalation_server.py CHANGED
@@ -256,5 +256,13 @@ def escalation_handover(teacher_name: str, subject: str) -> str:
256
  "They will review it and get back to you on your dashboard soon!"
257
  )
258
 
 
 
259
  if __name__ == "__main__":
260
- mcp.run()
 
 
 
 
 
 
 
256
  "They will review it and get back to you on your dashboard soon!"
257
  )
258
 
259
+ # if __name__ == "__main__":
260
+ # mcp.run()
261
  if __name__ == "__main__":
262
+ # For Hugging Face Spaces, we use transport="sse" or "http"
263
+ # Port 7860 is the HF default
264
+ mcp.run(
265
+ transport="http",
266
+ port=7860,
267
+ host="0.0.0.0"
268
+ )