heymenn commited on
Commit
a2700cf
1 Parent(s): 5d9fc84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -94,6 +94,7 @@ with gr.Blocks() as demo:
94
  dd_searchcol = gr.Dropdown(label="Column to look into (Optional)", value='[ALL]', multiselect=False, scale=4)
95
  dd_keywords = gr.Dropdown(label="Words to look for (Optional)", multiselect=True, allow_custom_value=True, scale=5)
96
  mist_button = gr.Button("Ask AI")
 
97
 
98
  with gr.Tab("Classification by topic"):
99
  gr.Markdown("### This section will categories each contribution in your own personalized categories")
@@ -186,7 +187,7 @@ with gr.Blocks() as demo:
186
  radio.change(fn=change_textbox, inputs=[dropdown_split,radio], outputs=[dropdown_split, nb_split])
187
 
188
  #llm
189
- 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])
190
 
191
  #classification
192
  btn_classif.click(classification, inputs=[dd_source_class, fi_excel, df_category, sl_treshold], outputs=[fi_excel, df_output])
 
94
  dd_searchcol = gr.Dropdown(label="Column to look into (Optional)", value='[ALL]', multiselect=False, scale=4)
95
  dd_keywords = gr.Dropdown(label="Words to look for (Optional)", multiselect=True, allow_custom_value=True, scale=5)
96
  mist_button = gr.Button("Ask AI")
97
+ fi_checkpoint = gr.File()
98
 
99
  with gr.Tab("Classification by topic"):
100
  gr.Markdown("### This section will categories each contribution in your own personalized categories")
 
187
  radio.change(fn=change_textbox, inputs=[dropdown_split,radio], outputs=[dropdown_split, nb_split])
188
 
189
  #llm
190
+ 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,fi_checkpoint])
191
 
192
  #classification
193
  btn_classif.click(classification, inputs=[dd_source_class, fi_excel, df_category, sl_treshold], outputs=[fi_excel, df_output])