Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from sklearn.neighbors import NearestNeighbors
|
|
9 |
import numpy as np
|
10 |
|
11 |
# Load the Hugging Face token from environment variables
|
12 |
-
huggingface_token = os.environ.get("
|
13 |
|
14 |
# Function to query the Hugging Face API
|
15 |
def query_huggingface_model(prompt, max_new_tokens=1000, temperature=0.7, top_k=50):
|
|
|
9 |
import numpy as np
|
10 |
|
11 |
# Load the Hugging Face token from environment variables
|
12 |
+
huggingface_token = os.environ.get("Key2") # Replace with your Hugging Face token
|
13 |
|
14 |
# Function to query the Hugging Face API
|
15 |
def query_huggingface_model(prompt, max_new_tokens=1000, temperature=0.7, top_k=50):
|