Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -140,7 +140,7 @@ with gr.Blocks() as demo:
|
|
140 |
with gr.Tab("Overall"):
|
141 |
btn_overall = gr.Button("Overall Review")
|
142 |
with gr.Tab("By Expert"):
|
143 |
-
|
144 |
btn_expert = gr.Button("Top 10 by expert")
|
145 |
with gr.Tab("By Company"):
|
146 |
tb_com=gr.Textbox(label="Company Name",info="You can write 1, 2 or 3 company names at the same time")
|
@@ -162,6 +162,7 @@ with gr.Blocks() as demo:
|
|
162 |
btn_search_status.click(extract_statuses, inputs=dd_url, outputs=dd_status)
|
163 |
btn_search.click(browse_folder, inputs=dd_url, outputs=dd_url)
|
164 |
dd_url.change(browse_folder, inputs=dd_url, outputs=dd_url)
|
|
|
165 |
fi_excel.change(get_columns, inputs=[fi_excel], outputs=[dd_source_ask, dd_source_class, dd_label1, dd_label2, dd_searchcol, df_output])
|
166 |
|
167 |
btn_extract.click(extractionPrincipale, inputs=[dd_url, fi_excel, dd_status], outputs=[fi_excel, tb_message])
|
@@ -175,7 +176,7 @@ with gr.Blocks() as demo:
|
|
175 |
btn_overall.click(generate_company_chart,inputs=[fi_excel], outputs=[plt_chart])
|
176 |
btn_overall.click(status_chart,inputs=[fi_excel], outputs=[plt_chart2])
|
177 |
btn_overall.click(category_chart,inputs=[fi_excel], outputs=[plt_chart3])
|
178 |
-
btn_expert.click(chart_by_expert,inputs=[fi_excel,
|
179 |
btn_type.click(company_document_type,inputs=[fi_excel,tb_com], outputs=[plt_chart])
|
180 |
# dd_label1.change(update_label, inputs=[dd_label1], outputs=[dd_label2])
|
181 |
|
|
|
140 |
with gr.Tab("Overall"):
|
141 |
btn_overall = gr.Button("Overall Review")
|
142 |
with gr.Tab("By Expert"):
|
143 |
+
dd_exp=gr.Dropdown(label="Experts", multiselect=False, allow_custom_value=True,)
|
144 |
btn_expert = gr.Button("Top 10 by expert")
|
145 |
with gr.Tab("By Company"):
|
146 |
tb_com=gr.Textbox(label="Company Name",info="You can write 1, 2 or 3 company names at the same time")
|
|
|
162 |
btn_search_status.click(extract_statuses, inputs=dd_url, outputs=dd_status)
|
163 |
btn_search.click(browse_folder, inputs=dd_url, outputs=dd_url)
|
164 |
dd_url.change(browse_folder, inputs=dd_url, outputs=dd_url)
|
165 |
+
fi_excel.change(get_expert,inputs=fi_excel, outputs=dd_exp)
|
166 |
fi_excel.change(get_columns, inputs=[fi_excel], outputs=[dd_source_ask, dd_source_class, dd_label1, dd_label2, dd_searchcol, df_output])
|
167 |
|
168 |
btn_extract.click(extractionPrincipale, inputs=[dd_url, fi_excel, dd_status], outputs=[fi_excel, tb_message])
|
|
|
176 |
btn_overall.click(generate_company_chart,inputs=[fi_excel], outputs=[plt_chart])
|
177 |
btn_overall.click(status_chart,inputs=[fi_excel], outputs=[plt_chart2])
|
178 |
btn_overall.click(category_chart,inputs=[fi_excel], outputs=[plt_chart3])
|
179 |
+
btn_expert.click(chart_by_expert,inputs=[fi_excel,dd_exp], outputs=[plt_chart])
|
180 |
btn_type.click(company_document_type,inputs=[fi_excel,tb_com], outputs=[plt_chart])
|
181 |
# dd_label1.change(update_label, inputs=[dd_label1], outputs=[dd_label2])
|
182 |
|