Spaces:
Runtime error
Runtime error
| import os, sys | |
| import numpy as np | |
| import pandas as pd | |
| import gradio as gr | |
| from libs import * | |
| import logging | |
| logging.basicConfig(level=logging.DEBUG) | |
| with gr.Blocks(title="μμ μ±μ νμΈ") as demo: | |
| gr.Markdown("μμ μ±μ νμΈμ μν΄, μμ κ³Ό μ΄λ¦ νλ²μ μ λ ₯νμΈμ.") | |
| with gr.Row(): | |
| with gr.Column(): | |
| class_select = gr.Dropdown(choices=CLASS_LST, multiselect=False, label="μμ μ ν") | |
| name_input = gr.Textbox(label="μ΄λ¦ μ λ ₯") | |
| number_input = gr.Textbox(label="νλ² μ λ ₯") | |
| input_buttton = gr.Button("νμΈ") | |
| with gr.Column(): | |
| image_output = gr.Image(label="μ±μ λΆν¬ κ·Έλ¦Ό") | |
| data_output = gr.Dataframe(label="μ±μ ", interactive=True) | |
| input_buttton.click(check_grade,inputs=[name_input, number_input, class_select], outputs = [image_output, data_output]) | |
| demo.launch(debug=True) |