Update app.py
Browse files
app.py
CHANGED
|
@@ -51,10 +51,10 @@ textbox = gr.Textbox(label='Command')
|
|
| 51 |
# Create Gradio interface with tabs
|
| 52 |
with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
| 53 |
|
| 54 |
-
gr.Markdown("#
|
| 55 |
-
gr.Markdown("
|
| 56 |
|
| 57 |
-
with gr.Tab("
|
| 58 |
gr.Markdown("## This is Tab A")
|
| 59 |
gr.Markdown("Description for Tab A")
|
| 60 |
textbox_a = gr.Textbox(label='Command A')
|
|
@@ -62,7 +62,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
| 62 |
button_a = gr.Button("Submit A")
|
| 63 |
button_a.click(dprocess, inputs=[textbox_a], outputs=output_a)
|
| 64 |
|
| 65 |
-
with gr.Tab("
|
| 66 |
gr.Markdown("## This is Tab B")
|
| 67 |
gr.Markdown("Description for Tab B")
|
| 68 |
textbox_b = gr.Textbox(label='Command B')
|
|
@@ -70,7 +70,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
| 70 |
button_b = gr.Button("Submit B")
|
| 71 |
button_b.click(dprocess, inputs=[textbox_b], outputs=output_b)
|
| 72 |
|
| 73 |
-
with gr.Tab("
|
| 74 |
gr.Markdown("## This is Tab C")
|
| 75 |
gr.Markdown("Description for Tab C")
|
| 76 |
textbox_c = gr.Textbox(label='Command C')
|
|
@@ -78,6 +78,38 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
| 78 |
button_c = gr.Button("Submit C")
|
| 79 |
button_c.click(dprocess, inputs=[textbox_c], outputs=output_c)
|
| 80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
# For the inputs parameter of Interface provide [textbox,company] with outputs parameter of Interface provide prediction
|
| 82 |
# demo = gr.Interface(fn=dprocess,
|
| 83 |
# inputs=[textbox],
|
|
|
|
| 51 |
# Create Gradio interface with tabs
|
| 52 |
with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
| 53 |
|
| 54 |
+
gr.Markdown("# operand")
|
| 55 |
+
gr.Markdown("Data Studio")
|
| 56 |
|
| 57 |
+
with gr.Tab("Data Source"):
|
| 58 |
gr.Markdown("## This is Tab A")
|
| 59 |
gr.Markdown("Description for Tab A")
|
| 60 |
textbox_a = gr.Textbox(label='Command A')
|
|
|
|
| 62 |
button_a = gr.Button("Submit A")
|
| 63 |
button_a.click(dprocess, inputs=[textbox_a], outputs=output_a)
|
| 64 |
|
| 65 |
+
with gr.Tab("Data Set"):
|
| 66 |
gr.Markdown("## This is Tab B")
|
| 67 |
gr.Markdown("Description for Tab B")
|
| 68 |
textbox_b = gr.Textbox(label='Command B')
|
|
|
|
| 70 |
button_b = gr.Button("Submit B")
|
| 71 |
button_b.click(dprocess, inputs=[textbox_b], outputs=output_b)
|
| 72 |
|
| 73 |
+
with gr.Tab("Data Transform"):
|
| 74 |
gr.Markdown("## This is Tab C")
|
| 75 |
gr.Markdown("Description for Tab C")
|
| 76 |
textbox_c = gr.Textbox(label='Command C')
|
|
|
|
| 78 |
button_c = gr.Button("Submit C")
|
| 79 |
button_c.click(dprocess, inputs=[textbox_c], outputs=output_c)
|
| 80 |
|
| 81 |
+
with gr.Tab("Data Analysis"):
|
| 82 |
+
gr.Markdown("## This is Tab C")
|
| 83 |
+
gr.Markdown("Description for Tab C")
|
| 84 |
+
textbox_c = gr.Textbox(label='Command C')
|
| 85 |
+
output_c = gr.Textbox(label='Output C')
|
| 86 |
+
button_c = gr.Button("Submit C")
|
| 87 |
+
button_c.click(dprocess, inputs=[textbox_c], outputs=output_c)
|
| 88 |
+
|
| 89 |
+
with gr.Tab("Data Visualization"):
|
| 90 |
+
gr.Markdown("## This is Tab C")
|
| 91 |
+
gr.Markdown("Description for Tab C")
|
| 92 |
+
textbox_c = gr.Textbox(label='Command C')
|
| 93 |
+
output_c = gr.Textbox(label='Output C')
|
| 94 |
+
button_c = gr.Button("Submit C")
|
| 95 |
+
button_c.click(dprocess, inputs=[textbox_c], outputs=output_c)
|
| 96 |
+
|
| 97 |
+
with gr.Tab("Message"):
|
| 98 |
+
gr.Markdown("## This is Tab C")
|
| 99 |
+
gr.Markdown("Description for Tab C")
|
| 100 |
+
textbox_c = gr.Textbox(label='Command C')
|
| 101 |
+
output_c = gr.Textbox(label='Output C')
|
| 102 |
+
button_c = gr.Button("Submit C")
|
| 103 |
+
button_c.click(dprocess, inputs=[textbox_c], outputs=output_c)
|
| 104 |
+
|
| 105 |
+
with gr.Tab("Automation"):
|
| 106 |
+
gr.Markdown("## This is Tab C")
|
| 107 |
+
gr.Markdown("Description for Tab C")
|
| 108 |
+
textbox_c = gr.Textbox(label='Command C')
|
| 109 |
+
output_c = gr.Textbox(label='Output C')
|
| 110 |
+
button_c = gr.Button("Submit C")
|
| 111 |
+
button_c.click(dprocess, inputs=[textbox_c], outputs=output_c)
|
| 112 |
+
|
| 113 |
# For the inputs parameter of Interface provide [textbox,company] with outputs parameter of Interface provide prediction
|
| 114 |
# demo = gr.Interface(fn=dprocess,
|
| 115 |
# inputs=[textbox],
|