DavidD003's picture
Update app.py
dfd25a1
raw
history blame contribute delete
No virus
1.3 kB
import gradio as gr
import codeFile as cd
import openpyxl as pyxl
def myFunction(brwSchd):
flnm=cd.Gantiffy(brwSchd)
return flNm
demo = gr.Interface(
myFunction,
[
#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"),
#gr.CheckboxGroup(["Friday", "Monday"], label="Check the boxes as appropriate if scheduling long weekend"),
#gr.Radio([32, 40],label="Regular Work Hours This Week?"),
#gr.Radio(["Bud","Blue"],label="Which crew is on A shift this week?"),
#gr.File(label="Assignments List"),
# gr.File(label="Required Jobs List"),
#gr.File(label="Full Time Refusal Sheet - COPY OF SHEET WITH VALUES, NO FORMULAS"),
#gr.File(label="Temp Refusal Sheet - COPY OF SHEET WITH VALUES, NO FORMULAS"),
gr.File(label="Brew Sched"),
],
[
#gr.Dataframe(
# headers=["Date", "trsxn", "symbol", "qt","price"],
# datatype=["str", "str", "str", "number", "number"],
# ),
#gr.Textbox(label="dynamic import test"),
gr.File(label="Gantt Chart File")
],
description="Enter brew sched file to have Gantt chart added.",
)
demo.launch()#Nice!