Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -182,8 +182,8 @@ def get_llm():
|
|
182 |
endpoint_url=st.session_state['model'],
|
183 |
huggingfacehub_api_token=os.environ['HUGGINGFACEHUB_API_TOKEN'],
|
184 |
task="text-generation",
|
185 |
-
|
186 |
-
|
187 |
)
|
188 |
return llm
|
189 |
|
|
|
182 |
endpoint_url=st.session_state['model'],
|
183 |
huggingfacehub_api_token=os.environ['HUGGINGFACEHUB_API_TOKEN'],
|
184 |
task="text-generation",
|
185 |
+
temperature = st.session_state['temperature'],
|
186 |
+
max_new_tokens = st.session_state['max_new_tokens']
|
187 |
)
|
188 |
return llm
|
189 |
|