phyloforfun commited on
Commit
549d299
·
1 Parent(s): 9adc79d

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
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -2247,7 +2247,15 @@ st.set_page_config(layout="wide", page_icon='img/icon.ico', page_title='VoucherV
2247
 
2248
  # Parse the 'is_hf' argument and set it in session state
2249
  if 'is_hf' not in st.session_state:
2250
- st.session_state['is_hf'] = parse_command_line_argument('is_hf')
 
 
 
 
 
 
 
 
2251
 
2252
  # Default YAML file path
2253
  if 'config' not in st.session_state:
 
2247
 
2248
  # Parse the 'is_hf' argument and set it in session state
2249
  if 'is_hf' not in st.session_state:
2250
+ try:
2251
+ is_hf_arg = parse_command_line_argument('is_hf')
2252
+ if is_hf_arg == '1':
2253
+ st.session_state['is_hf'] = True
2254
+ else:
2255
+ st.session_state['is_hf'] = False
2256
+ except:
2257
+ st.session_state['is_hf'] = False
2258
+
2259
 
2260
  # Default YAML file path
2261
  if 'config' not in st.session_state: