Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
| 62 |
textbox_a = gr.Textbox(label='Command')
|
| 63 |
output_a = gr.Textbox(label='Output')
|
| 64 |
button_a = gr.Button("Submit")
|
| 65 |
-
button_a.click(
|
| 66 |
|
| 67 |
with gr.Tab("Set"):
|
| 68 |
gr.Markdown("## Data Set")
|
|
@@ -70,7 +70,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
| 70 |
textbox_b = gr.Textbox(label='Command')
|
| 71 |
output_b = gr.Textbox(label='Output')
|
| 72 |
button_b = gr.Button("Submit")
|
| 73 |
-
button_b.click(
|
| 74 |
|
| 75 |
with gr.Tab("Transform"):
|
| 76 |
gr.Markdown("## Data Transform")
|
|
@@ -78,7 +78,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
| 78 |
textbox_c = gr.Textbox(label='Command')
|
| 79 |
output_c = gr.Textbox(label='Output')
|
| 80 |
button_c = gr.Button("Submit")
|
| 81 |
-
button_c.click(
|
| 82 |
|
| 83 |
with gr.Tab("Analysis"):
|
| 84 |
gr.Markdown("## Data Analysis")
|
|
@@ -86,7 +86,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
| 86 |
textbox_d = gr.Textbox(label='Command')
|
| 87 |
output_d = gr.Textbox(label='Output')
|
| 88 |
button_d = gr.Button("Submit")
|
| 89 |
-
button_d.click(
|
| 90 |
|
| 91 |
with gr.Tab("Visualization"):
|
| 92 |
gr.Markdown("## Data Visualization")
|
|
@@ -94,7 +94,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
| 94 |
textbox_e = gr.Textbox(label='Command')
|
| 95 |
output_e = gr.Textbox(label='Output')
|
| 96 |
button_e = gr.Button("Submit")
|
| 97 |
-
button_e.click(
|
| 98 |
|
| 99 |
with gr.Tab("Notification"):
|
| 100 |
gr.Markdown("## Notifications")
|
|
@@ -102,7 +102,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
| 102 |
textbox_f = gr.Textbox(label='Command')
|
| 103 |
output_f = gr.Textbox(label='Output')
|
| 104 |
button_f = gr.Button("Submit")
|
| 105 |
-
button_f.click(
|
| 106 |
|
| 107 |
with gr.Tab("Automation"):
|
| 108 |
gr.Markdown("## Automation")
|
|
@@ -110,7 +110,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
| 110 |
textbox_g = gr.Textbox(label='Command')
|
| 111 |
output_g = gr.Textbox(label='Output')
|
| 112 |
button_g = gr.Button("Submit")
|
| 113 |
-
button_g.click(
|
| 114 |
|
| 115 |
# For the inputs parameter of Interface provide [textbox,company] with outputs parameter of Interface provide prediction
|
| 116 |
# demo = gr.Interface(fn=dprocess,
|
|
|
|
| 62 |
textbox_a = gr.Textbox(label='Command')
|
| 63 |
output_a = gr.Textbox(label='Output')
|
| 64 |
button_a = gr.Button("Submit")
|
| 65 |
+
button_a.click(process_command, inputs=[textbox_a], outputs=output_a)
|
| 66 |
|
| 67 |
with gr.Tab("Set"):
|
| 68 |
gr.Markdown("## Data Set")
|
|
|
|
| 70 |
textbox_b = gr.Textbox(label='Command')
|
| 71 |
output_b = gr.Textbox(label='Output')
|
| 72 |
button_b = gr.Button("Submit")
|
| 73 |
+
button_b.click(process_command, inputs=[textbox_b], outputs=output_b)
|
| 74 |
|
| 75 |
with gr.Tab("Transform"):
|
| 76 |
gr.Markdown("## Data Transform")
|
|
|
|
| 78 |
textbox_c = gr.Textbox(label='Command')
|
| 79 |
output_c = gr.Textbox(label='Output')
|
| 80 |
button_c = gr.Button("Submit")
|
| 81 |
+
button_c.click(process_command, inputs=[textbox_c], outputs=output_c)
|
| 82 |
|
| 83 |
with gr.Tab("Analysis"):
|
| 84 |
gr.Markdown("## Data Analysis")
|
|
|
|
| 86 |
textbox_d = gr.Textbox(label='Command')
|
| 87 |
output_d = gr.Textbox(label='Output')
|
| 88 |
button_d = gr.Button("Submit")
|
| 89 |
+
button_d.click(process_command, inputs=[textbox_d], outputs=output_d)
|
| 90 |
|
| 91 |
with gr.Tab("Visualization"):
|
| 92 |
gr.Markdown("## Data Visualization")
|
|
|
|
| 94 |
textbox_e = gr.Textbox(label='Command')
|
| 95 |
output_e = gr.Textbox(label='Output')
|
| 96 |
button_e = gr.Button("Submit")
|
| 97 |
+
button_e.click(process_command, inputs=[textbox_e], outputs=output_e)
|
| 98 |
|
| 99 |
with gr.Tab("Notification"):
|
| 100 |
gr.Markdown("## Notifications")
|
|
|
|
| 102 |
textbox_f = gr.Textbox(label='Command')
|
| 103 |
output_f = gr.Textbox(label='Output')
|
| 104 |
button_f = gr.Button("Submit")
|
| 105 |
+
button_f.click(process_command, inputs=[textbox_f], outputs=output_f)
|
| 106 |
|
| 107 |
with gr.Tab("Automation"):
|
| 108 |
gr.Markdown("## Automation")
|
|
|
|
| 110 |
textbox_g = gr.Textbox(label='Command')
|
| 111 |
output_g = gr.Textbox(label='Output')
|
| 112 |
button_g = gr.Button("Submit")
|
| 113 |
+
button_g.click(process_command, inputs=[textbox_g], outputs=output_g)
|
| 114 |
|
| 115 |
# For the inputs parameter of Interface provide [textbox,company] with outputs parameter of Interface provide prediction
|
| 116 |
# demo = gr.Interface(fn=dprocess,
|