Noo88ear Claude commited on
Commit
db70e19
Β·
1 Parent(s): bdf4de0

Fix Gradio launch parameters and function signature

Browse files

- Remove invalid mcp_server parameter from app.launch()
- Fix simple_demo function to accept input parameter
- Resolve startup errors in HuggingFace Spaces deployment

πŸ€– Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -33,8 +33,7 @@ if __name__ == "__main__":
33
  server_name="0.0.0.0",
34
  server_port=int(os.getenv("PORT", 7860)),
35
  share=False,
36
- show_error=True,
37
- mcp_server=True # Enable MCP server for HuggingFace Spaces
38
  )
39
  except Exception as e:
40
  print(f"❌ Startup Error: {e}")
@@ -47,7 +46,7 @@ if __name__ == "__main__":
47
  print("\nπŸ”„ Starting simplified interface...")
48
  import gradio as gr
49
 
50
- def simple_demo():
51
  return "Multi-Agent Job Application Assistant is initializing. Please check back in a moment."
52
 
53
  demo = gr.Interface(
 
33
  server_name="0.0.0.0",
34
  server_port=int(os.getenv("PORT", 7860)),
35
  share=False,
36
+ show_error=True
 
37
  )
38
  except Exception as e:
39
  print(f"❌ Startup Error: {e}")
 
46
  print("\nπŸ”„ Starting simplified interface...")
47
  import gradio as gr
48
 
49
+ def simple_demo(input_text):
50
  return "Multi-Agent Job Application Assistant is initializing. Please check back in a moment."
51
 
52
  demo = gr.Interface(