Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import gradio as gr
|
|
| 4 |
|
| 5 |
HF_MODEL = "TOPAI-Network/nsfw_chat_0124"
|
| 6 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
| 7 |
-
API_URL = f"https://router.huggingface.co/hf-inference/models/
|
| 8 |
HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"} if HF_TOKEN else {}
|
| 9 |
|
| 10 |
# Safety / gate: simple age checkbox + confirmation of NSFW
|
|
|
|
| 4 |
|
| 5 |
HF_MODEL = "TOPAI-Network/nsfw_chat_0124"
|
| 6 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
| 7 |
+
API_URL = f"https://router.huggingface.co/hf-inference/models/TOPAI-Network/nsfw_chat_0124"
|
| 8 |
HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"} if HF_TOKEN else {}
|
| 9 |
|
| 10 |
# Safety / gate: simple age checkbox + confirmation of NSFW
|