SolomonHsu commited on
Commit
beb71c9
1 Parent(s): 7fcf4b1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -108,7 +108,7 @@ import requests
108
 
109
  HF_TOKEN = os.environ.get('HF_TOKEN')
110
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
111
- API_URL = "https://api-inference.huggingface.co/models/mistralai/Mixtral-8x7B-Instruct-v0.1"
112
  def query(payload):
113
  response = requests.post(API_URL, headers=headers, json=payload)
114
  return response.json()
 
108
 
109
  HF_TOKEN = os.environ.get('HF_TOKEN')
110
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
111
+ API_URL = os.environ.get('HF_API_URL')
112
  def query(payload):
113
  response = requests.post(API_URL, headers=headers, json=payload)
114
  return response.json()