Spaces:
Runtime error
Runtime error
File size: 941 Bytes
b20898d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
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) |