decodemai commited on
Commit
e98ee39
1 Parent(s): 8050e42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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