Spaces:
Sleeping
Sleeping
trying stuff
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ import requests
|
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
API_URL = "https://api-inference.huggingface.co/models/EleutherAI/gpt-neo-125M"
|
|
|
|
| 6 |
|
| 7 |
HEADERS = {
|
| 8 |
"Authorization": f"Bearer {os.environ['HUGGINGFACEHUB_API_TOKEN']}"
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
API_URL = "https://api-inference.huggingface.co/models/EleutherAI/gpt-neo-125M"
|
| 6 |
+
print("Loaded token:", os.environ.get('HUGGINGFACEHUB_API_TOKEN'))
|
| 7 |
|
| 8 |
HEADERS = {
|
| 9 |
"Authorization": f"Bearer {os.environ['HUGGINGFACEHUB_API_TOKEN']}"
|