added token test
Browse files
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(
|