AhmedM20 commited on
Commit
1f52315
1 Parent(s): 3d9549e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,4 +1,6 @@
1
  import pip
 
 
2
 
3
  def install(package):
4
  if hasattr(pip, 'main'):
@@ -11,7 +13,7 @@ if __name__ == '__main__':
11
  install('cohere')
12
  import cohere
13
  import gradio as gr
14
- co = cohere.Client('aJ2AOC9ign3E3xKpWiUQ6tAWdKRv7O6QWBvCQVrN') # This is your trial API key
15
 
16
  def write_email(tone="",goal="",industry="",text="",audience="",other=""):
17
  if goal=="Other":
 
1
  import pip
2
+ import os
3
+ SECRET_TOKEN = os.getenv("SECRET_TOKEN")
4
 
5
  def install(package):
6
  if hasattr(pip, 'main'):
 
13
  install('cohere')
14
  import cohere
15
  import gradio as gr
16
+ co = cohere.Client(SECRET_TOKEN) # This is your trial API key
17
 
18
  def write_email(tone="",goal="",industry="",text="",audience="",other=""):
19
  if goal=="Other":