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