awacke1 commited on
Commit
bdc25d5
1 Parent(s): db03c4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -312,7 +312,10 @@ def FileSidebar():
312
  try:
313
  if st.button("🔍", key="filecontentssearch"):
314
  #search_glossary(file_content_area)
315
- chat_with_model(PromptPrefix + file_content_area )
 
 
 
316
  except:
317
  st.markdown('GPT is sleeping. Restart ETA 30 seconds.')
318
 
@@ -330,7 +333,12 @@ def FileSidebar():
330
  file_content_area = st.text_area("File Contents:", file_contents, height=500)
331
  user_prompt = file_contents
332
  try:
333
- search_glossary(file_contents)
 
 
 
 
 
334
  except:
335
  st.markdown('GPT is sleeping. Restart ETA 30 seconds.')
336
  # ----------------------------------------------------- File Sidebar for Jump Gates ------------------------------------------
 
312
  try:
313
  if st.button("🔍", key="filecontentssearch"):
314
  #search_glossary(file_content_area)
315
+ filesearch = PromptPrefix + file_content_area
316
+ st.markdown(filesearch)
317
+ if st.button(key=rerun, label='🔍Re-Spec' ):
318
+ search_glossary(filesearch)
319
  except:
320
  st.markdown('GPT is sleeping. Restart ETA 30 seconds.')
321
 
 
333
  file_content_area = st.text_area("File Contents:", file_contents, height=500)
334
  user_prompt = file_contents
335
  try:
336
+ #search_glossary(file_contents)
337
+ filesearch = PromptPrefix2 + file_content_area
338
+ st.markdown(filesearch)
339
+ if st.button(key=rerun, label='🔍Re-Code' ):
340
+ search_glossary(filesearch)
341
+
342
  except:
343
  st.markdown('GPT is sleeping. Restart ETA 30 seconds.')
344
  # ----------------------------------------------------- File Sidebar for Jump Gates ------------------------------------------