-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmain_ho.py
More file actions
77 lines (69 loc) · 2.19 KB
/
main_ho.py
File metadata and controls
77 lines (69 loc) · 2.19 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
'''
Create Date: 2023/09/01
Author: @1chooo
Version: v0.0.3
'''
import gradio as gr
demo = gr.Blocks(
title='Refinaid',
)
with demo:
our_heading = gr.Markdown("# Simple AI - Bridging the Gap with AI For Everyone")
with gr.Tab("Preprocessing"):
our_heading = gr.Markdown("## Preprocessing")
with gr.Row():
with gr.Column():
gr.Markdown("### Dataset")
gr.Markdown("### Inputs")
gr.Markdown("### Missing Values Handling")
gr.Markdown(f"### Data Split\nTotal value should be 100%")
with gr.Column():
gr.ScatterPlot(label="Data Visualization")
with gr.Tab("Training"):
our_heading = gr.Markdown("## Training")
with gr.Row():
with gr.Column():
gr.Markdown("### Data You have picked!!!")
gr.DataFrame(
headers=[
"Parameters",
"Value"
],
row_count=(7, "fixed"),
col_count=(2, "fixed"),
interactive=False,
)
with gr.Column():
gr.Dropdown(label="Select Model", interactive=True)
with gr.Row():
train_btn = gr.Button(
value="Train"
)
with gr.Row():
gr.Markdown("## Training Result")
with gr.Row():
train_df = gr.DataFrame(
headers=["Accuracy", "Recall", "Precision", "F1"],
interactive=True,
row_count=(1, "fixed"),
col_count=(4, "fixed")
)
with gr.Row():
train_img1 = gr.Plot(interactive=True)
train_img2 = gr.Plot(interactive=True)
train_img3 = gr.Plot(interactive=True)
with gr.Tab("Results"):
our_heading = gr.Markdown("## Results")
with gr.Row():
gr.Textbox("hi")
gr.Textbox("hi")
with gr.Row():
gr.Textbox("hello")
gr.Textbox("hello")
demo.launch(
# enable_queue=True,
# share=True,
server_name="127.0.0.1",
server_port=6006,
debug=True,
)