Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import requests
|
|
3 |
import gradio as gr
|
4 |
import random
|
5 |
|
|
|
6 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
7 |
API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
|
8 |
|
|
|
3 |
import gradio as gr
|
4 |
import random
|
5 |
|
6 |
+
API_TOKEN = os.getenv("API_TOKEN")
|
7 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
8 |
API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
|
9 |
|