Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|