abidlabs HF Staff commited on
Commit
57f7892
·
1 Parent(s): cb2339f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -97,25 +97,25 @@ with gr.Blocks() as demo:
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
117
- # 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])
118
- # B_bt_MS.click(GenerateSchedule,[B_wwfOT,B_xtraDay,B_wkHrs,B_dayCrew,B_fl_PT,B_fl_FTref,B_fl_Tref,B_fl_Pl],[B_fl_FS,B_tx_FTtimestamp])
119
- # C_bt_MT.click(GenerateSchedule1,[B_wwfOT,B_xtraDay,B_wkHrs,B_dayCrew,B_fl_PT,B_fl_FTref,B_fl_Tref,B_fl_Pl],[C_fl_T,C_tx_Ttimestamp])
120
- # C_bt_PS.click(GenerateSchedule,[B_wwfOT,B_xtraDay,B_wkHrs,B_dayCrew,B_fl_PT,B_fl_FTref,B_fl_Tref,B_fl_Pl,C_nm_IN,C_nm_PS],[C_fl_PS,C_tx_ts2])
121
  demo.launch()
 
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
117
+ # 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])
118
+ # B_bt_MS.click(GenerateSchedule,[B_wwfOT,B_xtraDay,B_wkHrs,B_dayCrew,B_fl_PT,B_fl_FTref,B_fl_Tref,B_fl_Pl],[B_fl_FS,B_tx_FTtimestamp])
119
+ # C_bt_MT.click(GenerateSchedule1,[B_wwfOT,B_xtraDay,B_wkHrs,B_dayCrew,B_fl_PT,B_fl_FTref,B_fl_Tref,B_fl_Pl],[C_fl_T,C_tx_Ttimestamp])
120
+ # C_bt_PS.click(GenerateSchedule,[B_wwfOT,B_xtraDay,B_wkHrs,B_dayCrew,B_fl_PT,B_fl_FTref,B_fl_Tref,B_fl_Pl,C_nm_IN,C_nm_PS],[C_fl_PS,C_tx_ts2])
121
  demo.launch()