Spaces:
Running
Running
phyloforfun
commited on
Commit
·
b9673e0
1
Parent(s):
430a999
Major update. Support for 15 LLMs, World Flora Online taxonomy validation, geolocation, 2 OCR methods, significant UI changes, stability improvements, consistent JSON parsing
Browse files
app.py
CHANGED
@@ -205,7 +205,7 @@ def create_download_button(zip_filepath, col):
|
|
205 |
data=bytes_io,
|
206 |
file_name=os.path.basename(zip_filepath),
|
207 |
mime='application/zip',
|
208 |
-
use_container_width=True,key=
|
209 |
)
|
210 |
|
211 |
|
@@ -1772,7 +1772,7 @@ def content_header():
|
|
1772 |
with col_run_4:
|
1773 |
st.info(f":money_with_wings: This run cost :heavy_dollar_sign:{total_cost:.4f}")
|
1774 |
if st.session_state['zip_filepath']:
|
1775 |
-
create_download_button(st.session_state['zip_filepath'], col_run_1)
|
1776 |
else:
|
1777 |
st.button("Start Processing", type='primary', disabled=True)
|
1778 |
with col_run_4:
|
@@ -1782,7 +1782,7 @@ def content_header():
|
|
1782 |
if st.session_state['hold_output']:
|
1783 |
st.session_state['json_report'].set_JSON(st.session_state['formatted_json'], st.session_state['formatted_json_WFO'], st.session_state['formatted_json_GEO'])
|
1784 |
if st.session_state['zip_filepath']:
|
1785 |
-
create_download_button(st.session_state['zip_filepath'], col_run_1)
|
1786 |
|
1787 |
|
1788 |
|
@@ -1883,7 +1883,9 @@ def content_project_settings(col):
|
|
1883 |
st.header('Project Settings')
|
1884 |
|
1885 |
st.session_state.config['leafmachine']['project']['run_name'] = st.text_input("Run name", st.session_state.config['leafmachine']['project'].get('run_name', ''),key=63456)
|
1886 |
-
|
|
|
|
|
1887 |
|
1888 |
|
1889 |
|
|
|
205 |
data=bytes_io,
|
206 |
file_name=os.path.basename(zip_filepath),
|
207 |
mime='application/zip',
|
208 |
+
use_container_width=True,key=1293834565,
|
209 |
)
|
210 |
|
211 |
|
|
|
1772 |
with col_run_4:
|
1773 |
st.info(f":money_with_wings: This run cost :heavy_dollar_sign:{total_cost:.4f}")
|
1774 |
if st.session_state['zip_filepath']:
|
1775 |
+
create_download_button(st.session_state['zip_filepath'], col_run_1,key=97863332)
|
1776 |
else:
|
1777 |
st.button("Start Processing", type='primary', disabled=True)
|
1778 |
with col_run_4:
|
|
|
1782 |
if st.session_state['hold_output']:
|
1783 |
st.session_state['json_report'].set_JSON(st.session_state['formatted_json'], st.session_state['formatted_json_WFO'], st.session_state['formatted_json_GEO'])
|
1784 |
if st.session_state['zip_filepath']:
|
1785 |
+
create_download_button(st.session_state['zip_filepath'], col_run_1,key=978633452)
|
1786 |
|
1787 |
|
1788 |
|
|
|
1883 |
st.header('Project Settings')
|
1884 |
|
1885 |
st.session_state.config['leafmachine']['project']['run_name'] = st.text_input("Run name", st.session_state.config['leafmachine']['project'].get('run_name', ''),key=63456)
|
1886 |
+
|
1887 |
+
if not st.session_state.is_hf:
|
1888 |
+
st.session_state.config['leafmachine']['project']['dir_output'] = st.text_input("Output directory", st.session_state.config['leafmachine']['project'].get('dir_output', ''))
|
1889 |
|
1890 |
|
1891 |
|