Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,11 +5,8 @@ import gradio as gr
|
|
| 5 |
import requests
|
| 6 |
import json
|
| 7 |
|
| 8 |
-
# Load token from environment variable
|
| 9 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 10 |
-
|
| 11 |
-
# Hugging Face Inference API URL for CodeLlama
|
| 12 |
-
HF_API_URL = "https://api-inference.huggingface.co/models/codellama/CodeLlama-7b-Instruct-hf"
|
| 13 |
|
| 14 |
headers = {
|
| 15 |
"Authorization": f"Bearer {HF_TOKEN}",
|
|
|
|
| 5 |
import requests
|
| 6 |
import json
|
| 7 |
|
|
|
|
| 8 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 9 |
+
API_URL = "https://api-inference.huggingface.co/models/Salesforce/codegen-2B-multi"
|
|
|
|
|
|
|
| 10 |
|
| 11 |
headers = {
|
| 12 |
"Authorization": f"Bearer {HF_TOKEN}",
|