Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,6 +54,8 @@ with gr.Blocks() as demo:
|
|
| 54 |
B_fl_PT=gr.File(label="Primed Template File")
|
| 55 |
B_tx_PTtimestamp=gr.Textbox(label="File Change Timestamp - Primed Template",placeholder="Waiting for file")
|
| 56 |
with gr.Column():
|
|
|
|
|
|
|
| 57 |
with gr.Tab("Non-File Inputs"):
|
| 58 |
with gr.Row():
|
| 59 |
B_wwfOT=gr.Radio(["Yes", "No"],label="Assign OT to WWF? (If 'yes', WWF will be considered for filling in slots beyond their prescribed shifts in the Assignment List)")
|
|
@@ -77,5 +79,5 @@ with gr.Blocks() as demo:
|
|
| 77 |
#######################
|
| 78 |
#Third Define the Interactions
|
| 79 |
A_bt_PT.click(PrimeVisualTemplate,[A_fl_VT,A_fl_FTref,A_fl_Tref],[A_fl_PT,B_fl_PT,A_tx_PTtimestamp,B_tx_PTtimestamp,B_fl_FTref,B_fl_Tref])
|
| 80 |
-
|
| 81 |
demo.launch()
|
|
|
|
| 54 |
B_fl_PT=gr.File(label="Primed Template File")
|
| 55 |
B_tx_PTtimestamp=gr.Textbox(label="File Change Timestamp - Primed Template",placeholder="Waiting for file")
|
| 56 |
with gr.Column():
|
| 57 |
+
with gr.Row():
|
| 58 |
+
B_fl_Pl=gr.File(label="Polling File")
|
| 59 |
with gr.Tab("Non-File Inputs"):
|
| 60 |
with gr.Row():
|
| 61 |
B_wwfOT=gr.Radio(["Yes", "No"],label="Assign OT to WWF? (If 'yes', WWF will be considered for filling in slots beyond their prescribed shifts in the Assignment List)")
|
|
|
|
| 79 |
#######################
|
| 80 |
#Third Define the Interactions
|
| 81 |
A_bt_PT.click(PrimeVisualTemplate,[A_fl_VT,A_fl_FTref,A_fl_Tref],[A_fl_PT,B_fl_PT,A_tx_PTtimestamp,B_tx_PTtimestamp,B_fl_FTref,B_fl_Tref])
|
| 82 |
+
B_bt_MS.click(GenerateSchedule,[B_wwfOT,B_xtraDay,B_wkHrs,B_dayCrew,B_fl_PT.name,B_fl_FTref.name,B_fl_Tref.name,B_fl_Pl.name],[B_fl_FS.name,B_tx_FTtimestamp])
|
| 83 |
demo.launch()
|