medmac01 commited on
Commit
d0caafa
·
1 Parent(s): 15fe23d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from gradio_client import Client
6
 
7
  API_TOKEN = st.secrets['HF_TOKEN']
8
  API_URL = "https://api-inference.huggingface.co/models/mistralai/Mixtral-8x7B-Instruct-v0.1"
9
- headers = {"Authorization": "Bearer {str(API_TOKEN)}"}
10
 
11
  def query(payload):
12
  response = requests.post(API_URL, headers=headers, json=payload)
 
6
 
7
  API_TOKEN = st.secrets['HF_TOKEN']
8
  API_URL = "https://api-inference.huggingface.co/models/mistralai/Mixtral-8x7B-Instruct-v0.1"
9
+ headers = {"Authorization": f"Bearer {str(API_TOKEN)}"}
10
 
11
  def query(payload):
12
  response = requests.post(API_URL, headers=headers, json=payload)