Spaces:
Sleeping
Sleeping
karar-shah
commited on
Commit
·
7dae9d7
1
Parent(s):
555cfd1
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
# pip install -U "tensorflow-text==2.13.*"
|
4 |
# pip install -q streamlit==1.26.0
|
5 |
# pip install openai==0.28.0
|
6 |
-
|
7 |
import openai
|
8 |
import streamlit as st
|
9 |
import tensorflow as tf
|
@@ -25,7 +25,7 @@ import numpy as np
|
|
25 |
|
26 |
# st.title("ChatGPT-like clone")
|
27 |
|
28 |
-
openai.api_key =
|
29 |
reloaded_model = tf.saved_model.load('one_2')
|
30 |
|
31 |
emotion_categories = {
|
|
|
3 |
# pip install -U "tensorflow-text==2.13.*"
|
4 |
# pip install -q streamlit==1.26.0
|
5 |
# pip install openai==0.28.0
|
6 |
+
import os
|
7 |
import openai
|
8 |
import streamlit as st
|
9 |
import tensorflow as tf
|
|
|
25 |
|
26 |
# st.title("ChatGPT-like clone")
|
27 |
|
28 |
+
openai.api_key = os.environ['API_TOKEN']
|
29 |
reloaded_model = tf.saved_model.load('one_2')
|
30 |
|
31 |
emotion_categories = {
|