Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -271,9 +271,14 @@ def FileSidebar():
|
|
271 |
if len(file_contents) > 0:
|
272 |
if next_action=='open':
|
273 |
file_content_area = st.text_area("File Contents:", file_contents, height=500)
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
if next_action=='md':
|
275 |
st.markdown(file_contents)
|
276 |
-
|
277 |
buttonlabel = '🔍Run'
|
278 |
if st.button(key='RunWithLlamaandGPT', label = buttonlabel):
|
279 |
user_prompt = file_contents
|
@@ -281,9 +286,7 @@ def FileSidebar():
|
|
281 |
search_glossary(file_contents)
|
282 |
except:
|
283 |
st.markdown('GPT is sleeping. Restart ETA 30 seconds.')
|
284 |
-
#SpeechSynthesis(all)
|
285 |
|
286 |
-
|
287 |
if next_action=='search':
|
288 |
file_content_area = st.text_area("File Contents:", file_contents, height=500)
|
289 |
user_prompt = file_contents
|
@@ -291,10 +294,6 @@ def FileSidebar():
|
|
291 |
search_glossary(file_contents)
|
292 |
except:
|
293 |
st.markdown('GPT is sleeping. Restart ETA 30 seconds.')
|
294 |
-
|
295 |
-
except:
|
296 |
-
st.markdown('GPT is sleeping. Restart ETA 30 seconds.')
|
297 |
-
#SpeechSynthesis(all)
|
298 |
# ----------------------------------------------------- File Sidebar for Jump Gates ------------------------------------------
|
299 |
|
300 |
|
|
|
271 |
if len(file_contents) > 0:
|
272 |
if next_action=='open':
|
273 |
file_content_area = st.text_area("File Contents:", file_contents, height=500)
|
274 |
+
try:
|
275 |
+
if st.button("🔍", key="filecontentssearch"):
|
276 |
+
search_glossary(file_content_area)
|
277 |
+
except:
|
278 |
+
st.markdown('GPT is sleeping. Restart ETA 30 seconds.')
|
279 |
+
|
280 |
if next_action=='md':
|
281 |
st.markdown(file_contents)
|
|
|
282 |
buttonlabel = '🔍Run'
|
283 |
if st.button(key='RunWithLlamaandGPT', label = buttonlabel):
|
284 |
user_prompt = file_contents
|
|
|
286 |
search_glossary(file_contents)
|
287 |
except:
|
288 |
st.markdown('GPT is sleeping. Restart ETA 30 seconds.')
|
|
|
289 |
|
|
|
290 |
if next_action=='search':
|
291 |
file_content_area = st.text_area("File Contents:", file_contents, height=500)
|
292 |
user_prompt = file_contents
|
|
|
294 |
search_glossary(file_contents)
|
295 |
except:
|
296 |
st.markdown('GPT is sleeping. Restart ETA 30 seconds.')
|
|
|
|
|
|
|
|
|
297 |
# ----------------------------------------------------- File Sidebar for Jump Gates ------------------------------------------
|
298 |
|
299 |
|