Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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":
|