phyloforfun commited on
Commit
12ba60e
1 Parent(s): 88f7b69
Files changed (1) hide show
  1. app.py +21 -17
app.py CHANGED
@@ -1413,6 +1413,9 @@ def content_tab_settings():
1413
  st.session_state.config['leafmachine']['project']['prompt_version'] = st.selectbox("Prompt Version", versions, index=versions.index(selected_version),label_visibility='collapsed')
1414
  st.markdown("Several prompts are provided. Visit the 'Prompt Builder' tab to upload your own prompt. If you would like to make your prompt available to others or have the prompt in the dropdown by default, [please submit the yaml through this form.](https://forms.gle/d1sHV5Y7Y5NxMQzM9)")
1415
 
 
 
 
1416
  ### Input Images Local
1417
  with col_local_1:
1418
  st.session_state['dir_uploaded_images'] = os.path.join(st.session_state.dir_home,'uploads')
@@ -1698,37 +1701,38 @@ def main():
1698
  content_header()
1699
 
1700
  # tab_settings, tab_prompt, tab_domain, tab_component, tab_processing, tab_private, tab_delete = st.tabs(["Project Settings", "Prompt Builder", "Domain Knowledge","Component Detector", "Processing Options", "API Keys", "Space-Saver"])
1701
- tab_settings, tab_prompt, tab_domain, tab_component, tab_processing, tab_delete = st.tabs(["Project Settings", "Prompt Builder", "Domain Knowledge","Component Detector", "Processing Options", "Space-Saver"])
 
1702
 
1703
  with tab_settings:
1704
  content_tab_settings()
1705
 
1706
- with tab_prompt:
1707
- if st.button("Build Custom LLM Prompt"):
1708
- st.session_state.proceed_to_build_llm_prompt = True
1709
- st.rerun()
1710
- st.write('When opening the Prompt Builder, it take a moment for the page to refresh.')
1711
 
1712
- with tab_component:
1713
- # content_tab_component()
1714
- st.markdown("Not available in Hugging Face Spaces implementation. Please use the full [GitHub version](https://github.com/Gene-Weaver/VoucherVision) if you require these features (most use cases do not).")
1715
 
1716
- with tab_domain:
1717
- # content_tab_domain()
1718
- st.markdown("Not available in Hugging Face Spaces implementation. Please use the full [GitHub version](https://github.com/Gene-Weaver/VoucherVision) if you require these features (most use cases do not).")
1719
 
1720
- with tab_processing:
1721
- # content_tab_processing()
1722
- st.markdown("Not available in Hugging Face Spaces implementation. Please use the full [GitHub version](https://github.com/Gene-Weaver/VoucherVision) if you require these features (most use cases do not).")
1723
 
1724
  # with tab_private:
1725
  # if st.button("Edit API Keys"):
1726
  # st.session_state.proceed_to_private = True
1727
  # st.rerun()
1728
 
1729
- with tab_delete:
1730
  # create_space_saver()
1731
- st.markdown("Not available in Hugging Face Spaces implementation. Please use the full [GitHub version](https://github.com/Gene-Weaver/VoucherVision) if you require these features (most use cases do not).")
1732
 
1733
 
1734
  st.set_page_config(layout="wide", page_icon='img/icon.ico', page_title='VoucherVision')
 
1413
  st.session_state.config['leafmachine']['project']['prompt_version'] = st.selectbox("Prompt Version", versions, index=versions.index(selected_version),label_visibility='collapsed')
1414
  st.markdown("Several prompts are provided. Visit the 'Prompt Builder' tab to upload your own prompt. If you would like to make your prompt available to others or have the prompt in the dropdown by default, [please submit the yaml through this form.](https://forms.gle/d1sHV5Y7Y5NxMQzM9)")
1415
 
1416
+ if st.button("Build Custom LLM Prompt",help="It may take a moment for the page to refresh."):
1417
+ st.session_state.proceed_to_build_llm_prompt = True
1418
+ st.rerun()
1419
  ### Input Images Local
1420
  with col_local_1:
1421
  st.session_state['dir_uploaded_images'] = os.path.join(st.session_state.dir_home,'uploads')
 
1701
  content_header()
1702
 
1703
  # tab_settings, tab_prompt, tab_domain, tab_component, tab_processing, tab_private, tab_delete = st.tabs(["Project Settings", "Prompt Builder", "Domain Knowledge","Component Detector", "Processing Options", "API Keys", "Space-Saver"])
1704
+ # tab_settings, tab_prompt, tab_domain, tab_component, tab_processing, tab_delete = st.tabs(["Project Settings", "Prompt Builder", "Domain Knowledge","Component Detector", "Processing Options", "Space-Saver"])
1705
+ tab_settings = st.container()
1706
 
1707
  with tab_settings:
1708
  content_tab_settings()
1709
 
1710
+ # with tab_prompt:
1711
+ # if st.button("Build Custom LLM Prompt"):
1712
+ # st.session_state.proceed_to_build_llm_prompt = True
1713
+ # st.rerun()
1714
+ # st.write('When opening the Prompt Builder, it take a moment for the page to refresh.')
1715
 
1716
+ # with tab_component:
1717
+ # # content_tab_component()
1718
+ # st.markdown("Not available in Hugging Face Spaces implementation. Please use the full [GitHub version](https://github.com/Gene-Weaver/VoucherVision) if you require these features (most use cases do not).")
1719
 
1720
+ # with tab_domain:
1721
+ # # content_tab_domain()
1722
+ # st.markdown("Not available in Hugging Face Spaces implementation. Please use the full [GitHub version](https://github.com/Gene-Weaver/VoucherVision) if you require these features (most use cases do not).")
1723
 
1724
+ # with tab_processing:
1725
+ # # content_tab_processing()
1726
+ # st.markdown("Not available in Hugging Face Spaces implementation. Please use the full [GitHub version](https://github.com/Gene-Weaver/VoucherVision) if you require these features (most use cases do not).")
1727
 
1728
  # with tab_private:
1729
  # if st.button("Edit API Keys"):
1730
  # st.session_state.proceed_to_private = True
1731
  # st.rerun()
1732
 
1733
+ # with tab_delete:
1734
  # create_space_saver()
1735
+ # st.markdown("Not available in Hugging Face Spaces implementation. Please use the full [GitHub version](https://github.com/Gene-Weaver/VoucherVision) if you require these features (most use cases do not).")
1736
 
1737
 
1738
  st.set_page_config(layout="wide", page_icon='img/icon.ico', page_title='VoucherVision')