Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import requests
|
| 3 |
import json
|
|
|
|
| 4 |
|
| 5 |
# Hugging Face API details
|
| 6 |
-
API_URL =
|
| 7 |
HF_TOKEN = "YOUR_HUGGINGFACE_API_TOKEN" # put your HF token here
|
| 8 |
headers = {"Authorization": f"Bearer {HF_TOKEN}"}
|
| 9 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import requests
|
| 3 |
import json
|
| 4 |
+
import os
|
| 5 |
|
| 6 |
# Hugging Face API details
|
| 7 |
+
API_URL = os.getenv("HF_TOKEN")
|
| 8 |
HF_TOKEN = "YOUR_HUGGINGFACE_API_TOKEN" # put your HF token here
|
| 9 |
headers = {"Authorization": f"Bearer {HF_TOKEN}"}
|
| 10 |
|