Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import os
|
|
4 |
|
5 |
# Load API URL and token from environment variables
|
6 |
API_URL = os.getenv("HF_API_URL", "https://api-inference.huggingface.co/models/your-model")
|
7 |
-
API_TOKEN = os.getenv("HF_API_TOKEN", "your-default-token") # Replace with your
|
8 |
|
9 |
# Function to call the Hugging Face Inference API
|
10 |
def call_huggingface_api(input_text):
|
|
|
4 |
|
5 |
# Load API URL and token from environment variables
|
6 |
API_URL = os.getenv("HF_API_URL", "https://api-inference.huggingface.co/models/your-model")
|
7 |
+
API_TOKEN = os.getenv("HF_API_TOKEN", "your-default-token") # Replace with your ackktual token for fallback
|
8 |
|
9 |
# Function to call the Hugging Face Inference API
|
10 |
def call_huggingface_api(input_text):
|