Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,13 @@ submit = st.button('Submit')
|
|
| 12 |
|
| 13 |
st.write(openai_key)
|
| 14 |
|
|
|
|
|
|
|
| 15 |
if submit:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
if query and openai_key:
|
| 17 |
try:
|
| 18 |
with st.spinner('Processing your query...'):
|
|
|
|
| 12 |
|
| 13 |
st.write(openai_key)
|
| 14 |
|
| 15 |
+
|
| 16 |
+
|
| 17 |
if submit:
|
| 18 |
+
|
| 19 |
+
response = yg_assistant(openai_key,query)
|
| 20 |
+
st.write(response)
|
| 21 |
+
|
| 22 |
if query and openai_key:
|
| 23 |
try:
|
| 24 |
with st.spinner('Processing your query...'):
|