Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,9 +42,8 @@ def list_attributes_and_values():
|
|
42 |
"""
|
43 |
return html_script
|
44 |
|
45 |
-
def retrieve_checkpoint():
|
46 |
-
|
47 |
-
return users['save_name']
|
48 |
|
49 |
with gr.Blocks() as demo:
|
50 |
|
@@ -192,7 +191,7 @@ with gr.Blocks() as demo:
|
|
192 |
|
193 |
#llm
|
194 |
mist_button.click(chat_with_mistral, inputs=[dd_source_ask, tb_destcol, dd_prompt, fi_excel, dd_url, dd_searchcol, dd_keywords, dd_llm, st_user], outputs=[fi_excel, df_output, dd_prompt, dd_keywords, st_user, fi_config])
|
195 |
-
btn_checkpoint.click(retrieve_checkpoint, outputs=fi_checkpoint)
|
196 |
|
197 |
#classification
|
198 |
btn_classif.click(classification, inputs=[dd_source_class, fi_excel, df_category, sl_treshold], outputs=[fi_excel, df_output])
|
|
|
42 |
"""
|
43 |
return html_script
|
44 |
|
45 |
+
def retrieve_checkpoint(user):
|
46 |
+
return user["save_name"]
|
|
|
47 |
|
48 |
with gr.Blocks() as demo:
|
49 |
|
|
|
191 |
|
192 |
#llm
|
193 |
mist_button.click(chat_with_mistral, inputs=[dd_source_ask, tb_destcol, dd_prompt, fi_excel, dd_url, dd_searchcol, dd_keywords, dd_llm, st_user], outputs=[fi_excel, df_output, dd_prompt, dd_keywords, st_user, fi_config])
|
194 |
+
btn_checkpoint.click(retrieve_checkpoint, inputs=st_user, outputs=fi_checkpoint)
|
195 |
|
196 |
#classification
|
197 |
btn_classif.click(classification, inputs=[dd_source_class, fi_excel, df_category, sl_treshold], outputs=[fi_excel, df_output])
|