Spaces:
Runtime error
Runtime error
doncamilom
commited on
Commit
•
ad9fd33
1
Parent(s):
7fdd738
find out function of apikey='none'?
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import os
|
2 |
|
3 |
# Init with fake key
|
4 |
-
if 'OPENAI_API_KEY' not in os.environ:
|
5 |
-
os.environ['OPENAI_API_KEY'] = 'none'
|
6 |
|
7 |
import openai
|
8 |
import pandas as pd
|
@@ -147,9 +147,4 @@ with st.sidebar:
|
|
147 |
|
148 |
# Execute agent on user input
|
149 |
if user_input := st.chat_input():
|
150 |
-
if ss.get('api_key') is not None:
|
151 |
-
os.environ['OPENAI_API_KEY'] = ss.get('api_key')
|
152 |
-
|
153 |
run_prompt(user_input)
|
154 |
-
os.environ['OPENAI_API_KEY'] = 'none'
|
155 |
-
|
|
|
1 |
import os
|
2 |
|
3 |
# Init with fake key
|
4 |
+
#if 'OPENAI_API_KEY' not in os.environ:
|
5 |
+
# os.environ['OPENAI_API_KEY'] = 'none'
|
6 |
|
7 |
import openai
|
8 |
import pandas as pd
|
|
|
147 |
|
148 |
# Execute agent on user input
|
149 |
if user_input := st.chat_input():
|
|
|
|
|
|
|
150 |
run_prompt(user_input)
|
|
|
|