Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,9 @@ import os
|
|
6 |
TOKEN = os.getenv("HUGGINGFACE_API_TOKEN_V")
|
7 |
print('----------------',TOKEN,'-----------------')
|
8 |
# Check if the API token is set
|
9 |
-
if not
|
10 |
raise ValueError("API token is not set. Please set the HUGGINGFACE_API_TOKEN environment variable.")
|
11 |
-
|
12 |
-
import requests
|
13 |
-
import os
|
14 |
|
15 |
def respond(
|
16 |
message,
|
|
|
6 |
TOKEN = os.getenv("HUGGINGFACE_API_TOKEN_V")
|
7 |
print('----------------',TOKEN,'-----------------')
|
8 |
# Check if the API token is set
|
9 |
+
if not TOKEN:
|
10 |
raise ValueError("API token is not set. Please set the HUGGINGFACE_API_TOKEN environment variable.")
|
11 |
+
|
|
|
|
|
12 |
|
13 |
def respond(
|
14 |
message,
|