Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ class APIInferenceChatbot:
|
|
36 |
return result[0].get('generated_text', '').strip() if isinstance(result, list) and result else str(result)
|
37 |
|
38 |
# Get the API token from the environment variable
|
39 |
-
api_token = os.getenv("
|
40 |
if not api_token:
|
41 |
raise ValueError("Hugging Face API token not found in environment variables!")
|
42 |
|
|
|
36 |
return result[0].get('generated_text', '').strip() if isinstance(result, list) and result else str(result)
|
37 |
|
38 |
# Get the API token from the environment variable
|
39 |
+
api_token = os.getenv("tok_read")
|
40 |
if not api_token:
|
41 |
raise ValueError("Hugging Face API token not found in environment variables!")
|
42 |
|