abidlabs HF Staff commited on
Commit
149e86f
·
1 Parent(s): 46572dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -30
app.py CHANGED
@@ -74,40 +74,43 @@ with gr.Blocks() as demo:
74
  # B_fl_FTref=gr.File(label="Full Time Refusals Sheet")
75
 
76
  # B_fl_Tref=gr.File(label="Temp Refusal Sheet")
77
- with gr.Row():
78
- with gr.Column():
79
- B_fl_PT=gr.File(label="Primed Template File")
80
- B_tx_PTtimestamp=gr.Textbox(label="File Change Timestamp - Primed Template",placeholder="Waiting for file")
81
- with gr.Column():
82
- with gr.Row():
83
- B_fl_Pl=gr.File(label="Polling File")
84
- with gr.Tab("Non-File Inputs"):
85
- with gr.Row():
86
- 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)")
87
- B_dayCrew=gr.Radio(["Bud","Blue"],label="Which crew is on A shift this week?")
88
- with gr.Row():
89
- B_wkHrs=gr.Radio([32, 40],label="Regular Work Hours This Week?")
90
- B_xtraDay=gr.CheckboxGroup(["Friday", "Monday"], label="Check the boxes as appropriate if scheduling long weekend")
 
 
91
  # B_bt_MS = gr.Button("Generate Schedule")
92
  # B_fl_FS=gr.File(label="Generated Schedule")
93
  # B_tx_FTtimestamp=gr.Textbox(label="File Change Timestamp - Completed Schedule",placeholder="Waiting for first run")
94
  with gr.Tab("C - Review"):
95
- with gr.Tab("Inspect Template"):
96
- gr.Markdown("On this tab you can have the program generate a schedule using only the template file so as to confirm the template was entered correctly for program interpretation. This process builds the template using all inputs present in tab B. Inputs are required for building the template.")
97
- # C_bt_MT = gr.Button("Generate Template")
98
- # C_fl_T=gr.File(label="Generated Template")
99
- # C_tx_Ttimestamp=gr.Textbox(label="File Change Timestamp - Generated Template",placeholder="Waiting for first run.")
100
- with gr.Tab("Force Stop Mid-Scheduling"):
101
- gr.Markdown("On this tab you can observe what a schedule looked like after making a specific number of assignments. Iteration number can be retrieved from the bottom of the verbose assignment list tab of a generated schedule. If the specified iteration and assignment number combination are not encountered, this function will simply re generate the entire schedule. This function only quits schedule building after the template. An assignment number within the template building portion will not be quit on, and it will proceed to build full schedule.")
102
- # with gr.Row():
103
- # with gr.Column():
104
- # with gr.Row():
105
- # C_nm_PS = gr.Number(label="Limit Number for Total Assignments")
106
- # C_nm_IN = gr.Number(label="Iteration Number To Stop On")
107
- # with gr.Column():
108
- # C_fl_PS=gr.File(label="Partially Complete Schedule")
109
- # C_tx_ts2 = gr.Textbox(label="Time Of Partial Schedule Generation",placeholder="N/A")
110
- # C_bt_PS = gr.Button("Partially Generate Schedule")
 
111
 
112
  #######################
113
  # #Third Define the Interactions
 
74
  # B_fl_FTref=gr.File(label="Full Time Refusals Sheet")
75
 
76
  # B_fl_Tref=gr.File(label="Temp Refusal Sheet")
77
+
78
+ # with gr.Row():
79
+ # with gr.Column():
80
+ # B_fl_PT=gr.File(label="Primed Template File")
81
+ # B_tx_PTtimestamp=gr.Textbox(label="File Change Timestamp - Primed Template",placeholder="Waiting for file")
82
+ # with gr.Column():
83
+ # with gr.Row():
84
+ # B_fl_Pl=gr.File(label="Polling File")
85
+ # with gr.Tab("Non-File Inputs"):
86
+ # with gr.Row():
87
+ # 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)")
88
+ # B_dayCrew=gr.Radio(["Bud","Blue"],label="Which crew is on A shift this week?")
89
+ # with gr.Row():
90
+ # B_wkHrs=gr.Radio([32, 40],label="Regular Work Hours This Week?")
91
+ # B_xtraDay=gr.CheckboxGroup(["Friday", "Monday"], label="Check the boxes as appropriate if scheduling long weekend")
92
+
93
  # B_bt_MS = gr.Button("Generate Schedule")
94
  # B_fl_FS=gr.File(label="Generated Schedule")
95
  # B_tx_FTtimestamp=gr.Textbox(label="File Change Timestamp - Completed Schedule",placeholder="Waiting for first run")
96
  with gr.Tab("C - Review"):
97
+ gr.Textbox()
98
+ # with gr.Tab("Inspect Template"):
99
+ # gr.Markdown("On this tab you can have the program generate a schedule using only the template file so as to confirm the template was entered correctly for program interpretation. This process builds the template using all inputs present in tab B. Inputs are required for building the template.")
100
+ # # C_bt_MT = gr.Button("Generate Template")
101
+ # # C_fl_T=gr.File(label="Generated Template")
102
+ # # C_tx_Ttimestamp=gr.Textbox(label="File Change Timestamp - Generated Template",placeholder="Waiting for first run.")
103
+ # with gr.Tab("Force Stop Mid-Scheduling"):
104
+ # gr.Markdown("On this tab you can observe what a schedule looked like after making a specific number of assignments. Iteration number can be retrieved from the bottom of the verbose assignment list tab of a generated schedule. If the specified iteration and assignment number combination are not encountered, this function will simply re generate the entire schedule. This function only quits schedule building after the template. An assignment number within the template building portion will not be quit on, and it will proceed to build full schedule.")
105
+ # # with gr.Row():
106
+ # # with gr.Column():
107
+ # # with gr.Row():
108
+ # # C_nm_PS = gr.Number(label="Limit Number for Total Assignments")
109
+ # # C_nm_IN = gr.Number(label="Iteration Number To Stop On")
110
+ # # with gr.Column():
111
+ # # C_fl_PS=gr.File(label="Partially Complete Schedule")
112
+ # # C_tx_ts2 = gr.Textbox(label="Time Of Partial Schedule Generation",placeholder="N/A")
113
+ # # C_bt_PS = gr.Button("Partially Generate Schedule")
114
 
115
  #######################
116
  # #Third Define the Interactions