Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -271,11 +271,11 @@ 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 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
|
| 280 |
if next_action=='md':
|
| 281 |
st.markdown(file_contents)
|
|
|
|
| 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)
|