DavidD003 commited on
Commit
16580c5
1 Parent(s): c09ab63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -17
app.py CHANGED
@@ -1,35 +1,30 @@
1
  import gradio as gr
2
- def update(name,fl):
3
- return f"Welcome to Gradio, {name}!",fl.name
4
 
5
  with gr.Blocks() as demo:
6
  with gr.Tab("A - Visual Template Builder"):
7
- gr.Markdown("Start typing below and then click **Run** to see the output.")
8
  with gr.Row():
9
- inp1 = gr.Textbox(placeholder="What is your name?")
10
- out1 = gr.Textbox()
11
- btn1 = gr.Button("Run")
12
- fl1=gr.File(label="Assignments List")
 
 
 
13
  with gr.Tab("B - Scheduler"):
14
  gr.Markdown("Start typing below and then click **Run** to see the output.2")
15
  with gr.Row():
16
  inp2 = gr.Textbox(placeholder="What is your name?2")
17
  out2 = gr.Textbox()
18
- btn2 = gr.Button("Run2")
19
- with gr.Tab("B - Scheduler"):
20
- gr.Markdown("Start tzyping below and then click **Run** to see the output.2")
21
- with gr.Row():
22
- inp2 = gr.Textbox(placeholder="What is your name?2")
23
- out2 = gr.Textbox()
24
- btn2 = gr.Button("Run2")
25
- fl2=gr.File(label="Assignments List")
26
  with gr.Tab("C - Review"):
27
  gr.Markdown("Start typing below and then click **Run** to see the output.2")
28
  with gr.Row():
29
  inp2 = gr.Textbox(placeholder="What is your name?2")
30
  out2 = gr.Textbox()
31
  btn2 = gr.Button("Run2")
32
- btn1.click(fn=update, inputs=[inp1,fl1], outputs=[out2,fl2])
33
- btn2.click(fn=update, inputs=inp2, outputs=out1)
34
 
35
  demo.launch()
 
1
  import gradio as gr
2
+ from datetime import datetime
 
3
 
4
  with gr.Blocks() as demo:
5
  with gr.Tab("A - Visual Template Builder"):
6
+ gr.Markdown("On this tab you can input a purely visual template (assignment tables empty) and have it primed for use in the scheduling algorithm. The info generated here will also be sent as inputs to tab B. See the documentation for more details on required formatting")
7
  with gr.Row():
8
+ A_fl_FTref=gr.File(label="Full Time Refusals Sheet")
9
+ A_fl_Tref=gr.File(label="Temp Refusal Sheet")
10
+ with gr.Row():
11
+ A_fl_VT=gr.File(label="Visual Template File")
12
+ with gradio.Column():
13
+ A_fl_PT=gr.File(label="Primed Template File")
14
+ gr.Textbox(placeholder="What is your name?2")
15
  with gr.Tab("B - Scheduler"):
16
  gr.Markdown("Start typing below and then click **Run** to see the output.2")
17
  with gr.Row():
18
  inp2 = gr.Textbox(placeholder="What is your name?2")
19
  out2 = gr.Textbox()
20
+
 
 
 
 
 
 
 
21
  with gr.Tab("C - Review"):
22
  gr.Markdown("Start typing below and then click **Run** to see the output.2")
23
  with gr.Row():
24
  inp2 = gr.Textbox(placeholder="What is your name?2")
25
  out2 = gr.Textbox()
26
  btn2 = gr.Button("Run2")
27
+ #btn1.click(fn=update, inputs=[inp1,fl1], outputs=[out2,fl2])
28
+ #btn2.click(fn=update, inputs=inp2, outputs=out1)
29
 
30
  demo.launch()