Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,8 @@ import os
|
|
8 |
|
9 |
print(os.getenv('OPEN_AI_KEY'))
|
10 |
|
|
|
|
|
11 |
# Streamlit Configuration
|
12 |
st.set_page_config(page_title="WDWT?")
|
13 |
|
@@ -207,7 +209,7 @@ def decide(issue_id):
|
|
207 |
st.write(f"- {solution.content}")
|
208 |
|
209 |
if st.button("Get AI Decision"):
|
210 |
-
openai.api_key = '
|
211 |
prompt = f"Given the following solutions for the issue '{issue.title}', which one is the most socio-democratic decision?\n"
|
212 |
for solution in solutions:
|
213 |
prompt += f"- {solution.content}\n"
|
|
|
8 |
|
9 |
print(os.getenv('OPEN_AI_KEY'))
|
10 |
|
11 |
+
open_ai_api_key = os.getenv('OPEN_AI_KEY')
|
12 |
+
|
13 |
# Streamlit Configuration
|
14 |
st.set_page_config(page_title="WDWT?")
|
15 |
|
|
|
209 |
st.write(f"- {solution.content}")
|
210 |
|
211 |
if st.button("Get AI Decision"):
|
212 |
+
openai.api_key = 'open_ai_api_key'
|
213 |
prompt = f"Given the following solutions for the issue '{issue.title}', which one is the most socio-democratic decision?\n"
|
214 |
for solution in solutions:
|
215 |
prompt += f"- {solution.content}\n"
|