osanseviero commited on
Commit
6f25160
1 Parent(s): ae86868

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,12 +2,13 @@ import gradio as gr
2
  import re
3
  import requests
4
  import json
 
5
 
6
  title = "BLOOM"
7
  description = "Gradio Demo for BLOOM. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
8
 
9
  API_URL = "https://hfbloom.ngrok.io/generate"
10
- HF_API_TOKEN = st.secrets["HF_API_TOKEN"]
11
 
12
 
13
  examples = [
 
2
  import re
3
  import requests
4
  import json
5
+ import os
6
 
7
  title = "BLOOM"
8
  description = "Gradio Demo for BLOOM. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
9
 
10
  API_URL = "https://hfbloom.ngrok.io/generate"
11
+ HF_API_TOKEN = os.getenv("HF_API_TOKEN")
12
 
13
 
14
  examples = [