milaidy commited on
Commit
170f47d
·
verified ·
1 Parent(s): c24ee6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,8 +3,8 @@ import gradio as gr
3
 
4
  gr.load_openapi(
5
  openapi_spec="https://raw.githubusercontent.com/boshjerns/kalshimcp/main/kalshi-openapi.json",
6
- base_url="https://api.elections.kalshi.com/trade-api/v2/", # Fixed: This should be the actual API base URL
7
  paths=None,
8
  methods=['GET', 'POST', 'PUT', 'DELETE'],
9
  auth_token=os.getenv("OPENAPI_AUTH_TOKEN")
10
- ).launch(mcp_server=True, share=True) # Added share=True for proper exposure on HF Spaces
 
3
 
4
  gr.load_openapi(
5
  openapi_spec="https://raw.githubusercontent.com/boshjerns/kalshimcp/main/kalshi-openapi.json",
6
+ base_url="https://api.elections.kalshi.com/trade-api/v2/",
7
  paths=None,
8
  methods=['GET', 'POST', 'PUT', 'DELETE'],
9
  auth_token=os.getenv("OPENAPI_AUTH_TOKEN")
10
+ ).launch(mcp_server=True, share=True)