rbughao commited on
Commit
2e88643
1 Parent(s): 174330a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -1,9 +1,18 @@
1
  import gradio as gr
 
2
  from fastpurge import FastPurgeClient
3
 
 
 
 
 
 
4
  client = FastPurgeClient(
5
  auth={
6
-
 
 
 
7
  }
8
  )
9
 
 
1
  import gradio as gr
2
+ import os
3
  from fastpurge import FastPurgeClient
4
 
5
+ client_secret = os.environ.get('client_secret')
6
+ host = os.environ.get('host')
7
+ access_token = os.environ.get('access_token')
8
+ client_token = os.environ.get('client_token')
9
+
10
  client = FastPurgeClient(
11
  auth={
12
+ "client_secret": client_secret ,
13
+ "host": host,
14
+ "access_token": access_token,
15
+ "client_token": client_token
16
  }
17
  )
18