Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import pandas as pd | |
| import process | |
| def main(): | |
| with gr.Blocks() as demo: | |
| with gr.Row(): | |
| with gr.Column(scale = 1): | |
| course_name_input = gr.Textbox(label="θͺ²η¨ε稱", placeholder="θΌΈε ₯ιι΅εε³ε―") | |
| teacher_name_input = gr.Textbox(label="ζεΈ«ε§ε", placeholder="θΌΈε ₯ιι΅εε³ε―") | |
| day_input = gr.Dropdown(choices=["δΈι", "ζζδΈ", "ζζδΊ", "ζζδΈ", "ζζε", "ζζδΊ"], label="ζι", value="δΈι") | |
| submit_button = gr.Button("Submit") | |
| time_output = gr.Textbox(label="θ³ζιζ΄ζ°ζι") | |
| with gr.Column(scale = 2): | |
| dataframe_output = gr.HTML(label="ζε°η΅ζ") | |
| submit_button.click(process.generate, inputs=[course_name_input, teacher_name_input, day_input], outputs=[time_output, dataframe_output]) | |
| demo.launch(share=True, debug=True) | |
| if __name__=='__main__': | |
| main() |