mahynski commited on
Commit
171566d
·
1 Parent(s): 8dd9e3d

added token test

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -88,6 +88,10 @@ with st.sidebar:
88
  "Enter your LLM token",
89
  value=None
90
  )
 
 
 
 
91
 
92
  # Enter parsing Token
93
  parse_token = st.text_input(
 
88
  "Enter your LLM token",
89
  value=None
90
  )
91
+ if provider == 'openai':
92
+ os.environ['OPENAI_API_KEY'] = llm_token
93
+ elif provider == 'huggingface':
94
+ os.environ['HFTOKEN'] = llm_token
95
 
96
  # Enter parsing Token
97
  parse_token = st.text_input(