Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import os
|
|
3 |
import requests
|
4 |
|
5 |
# Load the Hugging Face token from environment variables (secrets)
|
6 |
-
token = os.environ.get("
|
7 |
|
8 |
# Function to query the Hugging Face API
|
9 |
def query_huggingface_api(prompt, max_new_tokens=50, temperature=0.7, top_k=50):
|
|
|
3 |
import requests
|
4 |
|
5 |
# Load the Hugging Face token from environment variables (secrets)
|
6 |
+
token = os.environ.get("Key2") # Replace "KEY2" with your secret key name
|
7 |
|
8 |
# Function to query the Hugging Face API
|
9 |
def query_huggingface_api(prompt, max_new_tokens=50, temperature=0.7, top_k=50):
|