pmv-hou commited on
Commit
0e1bc66
·
verified ·
1 Parent(s): 6710482

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -6,8 +6,6 @@ import os
6
  API_TOKEN = os.environ['HF_TOKEN']
7
  client = InferenceClient()
8
 
9
- API_URL = "https://api-inference.huggingface.co/google/gemma-7b"
10
- headers = {"Authorization": f"Bearer {API_TOKEN}"}
11
  def query(payload):
12
  response = client.text_generation(payload, model="google/gemma-7b", max_new_tokens=12)
13
  return response #.json()
 
6
  API_TOKEN = os.environ['HF_TOKEN']
7
  client = InferenceClient()
8
 
 
 
9
  def query(payload):
10
  response = client.text_generation(payload, model="google/gemma-7b", max_new_tokens=12)
11
  return response #.json()