Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,7 @@ import gradio as gr
|
|
3 |
import requests
|
4 |
import json
|
5 |
|
6 |
-
|
7 |
-
hf_token = os.environ.get("HF_TOKEN")
|
8 |
-
|
9 |
def query_llama(text):
|
10 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-8B-Instruct"
|
11 |
headers = {"Authorization": f"Bearer {hf_token}"} # Use the token from environment variable
|
|
|
3 |
import requests
|
4 |
import json
|
5 |
|
6 |
+
hf_token = os.getenv("HF_TOKEN")
|
|
|
|
|
7 |
def query_llama(text):
|
8 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-8B-Instruct"
|
9 |
headers = {"Authorization": f"Bearer {hf_token}"} # Use the token from environment variable
|