zamal commited on
Commit
31518a7
1 Parent(s): 836a718

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -3,9 +3,7 @@ import gradio as gr
3
  import requests
4
  import json
5
 
6
- # Load Hugging Face token from environment variable
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