Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ with gr.Blocks() as demo:
|
|
13 |
A_fl_VT=gr.File(label="Visual Template File")
|
14 |
with gr.Column():
|
15 |
A_fl_PT=gr.File(label="Primed Template File")
|
16 |
-
A_tx_PTtimestamp=gr.Textbox(label="File Change Timestamp",placeholder="Waiting for file")
|
17 |
A_bt_PT = gr.Button("Prime Visual Template")
|
18 |
with gr.Tab("B - Scheduler"):
|
19 |
gr.Markdown("On this tab the inputs are used to generate a weekend schedule. The Template and refusal sheet files are carried over when generated using tab A. The schedule is considered 'primed' when the tables on the secondary sheets match what is indicated on the visual template. The other inputs on this sheet should be selected per the circumstances. For example. If Friday is part of the weekend to be scheduled, Select '32 hrs', 'Friday', and 'yes to WWF scheduling'. Normal non-long weekend will not assign OT to WWF, and be 40 hour weeks without Friday or Monday to be scheduled.")
|
@@ -23,7 +23,7 @@ with gr.Blocks() as demo:
|
|
23 |
with gr.Row():
|
24 |
with gr.Column():
|
25 |
B_fl_PT=gr.File(label="Primed Template File")
|
26 |
-
B_tx_PTtimestamp=gr.Textbox(label="File Change Timestamp",placeholder="Waiting for file")
|
27 |
with gr.Column():
|
28 |
with gr.Tab("Non-File Inputs"):
|
29 |
with gr.Row():
|
@@ -35,11 +35,14 @@ with gr.Blocks() as demo:
|
|
35 |
B_bt_MS = gr.Button("Generate Schedule")
|
36 |
B_fl_FS=gr.File(label="Generated Schedule")
|
37 |
with gr.Tab("C - Review"):
|
38 |
-
gr.Markdown("On this tab you can observe the template used to make the
|
39 |
with gr.Row():
|
40 |
-
|
41 |
-
|
42 |
-
|
|
|
|
|
|
|
43 |
#btn1.click(fn=update, inputs=[inp1,fl1], outputs=[out2,fl2])
|
44 |
#btn2.click(fn=update, inputs=inp2, outputs=out1)
|
45 |
|
|
|
13 |
A_fl_VT=gr.File(label="Visual Template File")
|
14 |
with gr.Column():
|
15 |
A_fl_PT=gr.File(label="Primed Template File")
|
16 |
+
A_tx_PTtimestamp=gr.Textbox(label="File Change Timestamp - Primed Template",placeholder="Waiting for file")
|
17 |
A_bt_PT = gr.Button("Prime Visual Template")
|
18 |
with gr.Tab("B - Scheduler"):
|
19 |
gr.Markdown("On this tab the inputs are used to generate a weekend schedule. The Template and refusal sheet files are carried over when generated using tab A. The schedule is considered 'primed' when the tables on the secondary sheets match what is indicated on the visual template. The other inputs on this sheet should be selected per the circumstances. For example. If Friday is part of the weekend to be scheduled, Select '32 hrs', 'Friday', and 'yes to WWF scheduling'. Normal non-long weekend will not assign OT to WWF, and be 40 hour weeks without Friday or Monday to be scheduled.")
|
|
|
23 |
with gr.Row():
|
24 |
with gr.Column():
|
25 |
B_fl_PT=gr.File(label="Primed Template File")
|
26 |
+
B_tx_PTtimestamp=gr.Textbox(label="File Change Timestamp - Primed Template",placeholder="Waiting for file")
|
27 |
with gr.Column():
|
28 |
with gr.Tab("Non-File Inputs"):
|
29 |
with gr.Row():
|
|
|
35 |
B_bt_MS = gr.Button("Generate Schedule")
|
36 |
B_fl_FS=gr.File(label="Generated Schedule")
|
37 |
with gr.Tab("C - Review"):
|
38 |
+
gr.Markdown("On this tab you can observe the template used to make the last generated scheduled by entering '0' for number of assignments. Positive values will yield the schedule in progress, stopped after making that many assignments.")
|
39 |
with gr.Row():
|
40 |
+
with gr.Column():
|
41 |
+
C_tx_FS = gr.Textbox(label="Time Of Full Schedule Generation",placeholder="N/A")
|
42 |
+
C_nm_PS = gr.Number(label="Limit Number for Total Assignments")
|
43 |
+
with gr.Column():
|
44 |
+
C_fl_PS=gr.File(label="Partially Complete Schedule")
|
45 |
+
C_bt_PS = gr.Button("Partially Generate Schedule")
|
46 |
#btn1.click(fn=update, inputs=[inp1,fl1], outputs=[out2,fl2])
|
47 |
#btn2.click(fn=update, inputs=inp2, outputs=out1)
|
48 |
|