Update app.py
Browse files
app.py
CHANGED
|
@@ -97,15 +97,11 @@ with gr.Blocks() as demo:
|
|
| 97 |
|
| 98 |
file_input = gr.File(label="Upload Employee Feedback CSV", file_types=[".csv"])
|
| 99 |
process_button = gr.Button("Process CSV")
|
| 100 |
-
|
| 101 |
-
|
| 102 |
hr_input = gr.Textbox(label="HR Query (e.g., 'Which employees are at high risk?')")
|
| 103 |
-
|
| 104 |
output_text = gr.Markdown(label="Attrition Risk Prediction")
|
| 105 |
-
process_message = gr.Markdown(label="Processing Status")
|
| 106 |
-
|
| 107 |
df_state = gr.State()
|
| 108 |
-
|
| 109 |
process_button.click(process_csv, inputs=file_input, outputs=[df_state, process_message])
|
| 110 |
analyze_button.click(analyze_attrition_with_llm, inputs=[df_state, hr_input], outputs=output_text)
|
| 111 |
|
|
|
|
| 97 |
|
| 98 |
file_input = gr.File(label="Upload Employee Feedback CSV", file_types=[".csv"])
|
| 99 |
process_button = gr.Button("Process CSV")
|
| 100 |
+
process_message = gr.Markdown(label="Processing Status")
|
|
|
|
| 101 |
hr_input = gr.Textbox(label="HR Query (e.g., 'Which employees are at high risk?')")
|
| 102 |
+
analyze_button = gr.Button("Ask HR Query")
|
| 103 |
output_text = gr.Markdown(label="Attrition Risk Prediction")
|
|
|
|
|
|
|
| 104 |
df_state = gr.State()
|
|
|
|
| 105 |
process_button.click(process_csv, inputs=file_input, outputs=[df_state, process_message])
|
| 106 |
analyze_button.click(analyze_attrition_with_llm, inputs=[df_state, hr_input], outputs=output_text)
|
| 107 |
|