Garvitj commited on
Commit
33e8652
·
verified ·
1 Parent(s): 59acdb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ model1 = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
12
 
13
  # Hugging Face API details
14
  API_URL = "https://api-inference.huggingface.co/models/openai-community/gpt2"
15
- headers = {"Authorization": f"Bearer {hf_TsCTtXxnvpmhFKABqKmcVLyLEhjQPsITSVx"}}
16
 
17
  # Function to interact with Hugging Face API for GPT-2
18
  def query(payload):
 
12
 
13
  # Hugging Face API details
14
  API_URL = "https://api-inference.huggingface.co/models/openai-community/gpt2"
15
+ headers = {"Authorization": f"Bearer {hf_TsCTtXxnvpmhFKABqKmcVLyLEhjQPsITSVx}"}
16
 
17
  # Function to interact with Hugging Face API for GPT-2
18
  def query(payload):