Geevarghese George commited on
Commit
0f92db1
·
1 Parent(s): c8ed8e6

rm inference-api req

Browse files
Files changed (2) hide show
  1. README.md +1 -2
  2. app.py +1 -1
README.md CHANGED
@@ -11,8 +11,7 @@ license: mit
11
  short_description: MCP for Agents that plan your python package upgrade
12
  hf_oauth: true
13
  hf_oauth_scopes:
14
- - read-repos
15
- - inference-api
16
  tags:
17
  - building-mcp-track-enterprise
18
  - building-mcp-track-customer
 
11
  short_description: MCP for Agents that plan your python package upgrade
12
  hf_oauth: true
13
  hf_oauth_scopes:
14
+ - read-repos
 
15
  tags:
16
  - building-mcp-track-enterprise
17
  - building-mcp-track-customer
app.py CHANGED
@@ -43,7 +43,7 @@ _monkeypatch_gradio_save_history()
43
 
44
 
45
  def get_agent_model(model_name: str, oauth_token: gr.OAuthToken = None):
46
- token = oauth_token.token if oauth_token else None
47
  # provider = os.getenv("HF_INFERENCE_PROVIDER", "together")
48
  model = InferenceClientModel(
49
  model_id=model_name,
 
43
 
44
 
45
  def get_agent_model(model_name: str, oauth_token: gr.OAuthToken = None):
46
+ token = os.getenv("HF_TOKEN", None) or oauth_token.token if oauth_token else None
47
  # provider = os.getenv("HF_INFERENCE_PROVIDER", "together")
48
  model = InferenceClientModel(
49
  model_id=model_name,