decodemai commited on
Commit
fb756a3
·
1 Parent(s): 2be4fac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,10 +3,10 @@ import requests
3
  import gradio as gr
4
  import random
5
  import time
 
6
 
 
7
  from huggingface_hub import InferenceApi
8
- API_TOKEN='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'
9
-
10
  inference = InferenceApi("bigscience/bloom",token=API_TOKEN)
11
 
12
  prompt="""
 
3
  import gradio as gr
4
  import random
5
  import time
6
+ import os
7
 
8
+ API_TOKEN = os.getenv("API_TOKEN")
9
  from huggingface_hub import InferenceApi
 
 
10
  inference = InferenceApi("bigscience/bloom",token=API_TOKEN)
11
 
12
  prompt="""