Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ scheduler = CommitScheduler(
|
|
25 |
every=2
|
26 |
)
|
27 |
|
28 |
-
def
|
29 |
print('foo...')
|
30 |
with scheduler.lock:
|
31 |
with log_file.open("a") as f:
|
@@ -52,7 +52,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
52 |
|
53 |
with gr.Tab("Data Sources"):
|
54 |
|
55 |
-
gr.Markdown("##
|
56 |
|
57 |
with gr.Accordion("Syntax"):
|
58 |
gr.Markdown("<br>data_source my-ds-name1 my-ds-desc1 my-jira-endpoint1 my-jira-creds1")
|
@@ -64,7 +64,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
64 |
button_a = gr.Button("Submit")
|
65 |
button_a.click(dprocess, inputs=[textbox_a], outputs=output_a)
|
66 |
|
67 |
-
with gr.Tab("
|
68 |
gr.Markdown("## Data Set")
|
69 |
gr.Markdown("A data set from a data source.")
|
70 |
textbox_b = gr.Textbox(label='Command')
|
@@ -72,7 +72,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
72 |
button_b = gr.Button("Submit")
|
73 |
button_b.click(dprocess, inputs=[textbox_b], outputs=output_b)
|
74 |
|
75 |
-
with gr.Tab("
|
76 |
gr.Markdown("## Data Transform")
|
77 |
gr.Markdown("A transformation of a data set into a new data set.")
|
78 |
textbox_c = gr.Textbox(label='Command')
|
@@ -80,7 +80,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
80 |
button_c = gr.Button("Submit")
|
81 |
button_c.click(dprocess, inputs=[textbox_c], outputs=output_c)
|
82 |
|
83 |
-
with gr.Tab("
|
84 |
gr.Markdown("## Data Analysis")
|
85 |
gr.Markdown("Statistical analysis of a data set e.g., slope calculation on feature")
|
86 |
textbox_d = gr.Textbox(label='Command')
|
@@ -88,29 +88,29 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
88 |
button_d = gr.Button("Submit")
|
89 |
button_d.click(dprocess, inputs=[textbox_d], outputs=output_d)
|
90 |
|
91 |
-
with gr.Tab("
|
92 |
gr.Markdown("## Data Visualization")
|
93 |
gr.Markdown("A visual insight from a data set or data analysis results e.g., matplotlib, sns, plotly")
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
|
99 |
-
with gr.Tab("
|
100 |
gr.Markdown("## Notifications")
|
101 |
gr.Markdown("Scheduled transmission of data set, data analysis or data visualization direct to user device")
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
|
107 |
-
with gr.Tab("
|
108 |
gr.Markdown("## Automation")
|
109 |
gr.Markdown("Multistep composition of functional elements")
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
|
115 |
# For the inputs parameter of Interface provide [textbox,company] with outputs parameter of Interface provide prediction
|
116 |
# demo = gr.Interface(fn=dprocess,
|
@@ -120,6 +120,5 @@ with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
|
120 |
# description="Data Workbench CLI",
|
121 |
# theme=gr.themes.Soft())
|
122 |
|
123 |
-
|
124 |
operand.queue()
|
125 |
operand.launch()
|
|
|
25 |
every=2
|
26 |
)
|
27 |
|
28 |
+
def process_command(command, ddddd):
|
29 |
print('foo...')
|
30 |
with scheduler.lock:
|
31 |
with log_file.open("a") as f:
|
|
|
52 |
|
53 |
with gr.Tab("Data Sources"):
|
54 |
|
55 |
+
gr.Markdown("## Source")
|
56 |
|
57 |
with gr.Accordion("Syntax"):
|
58 |
gr.Markdown("<br>data_source my-ds-name1 my-ds-desc1 my-jira-endpoint1 my-jira-creds1")
|
|
|
64 |
button_a = gr.Button("Submit")
|
65 |
button_a.click(dprocess, inputs=[textbox_a], outputs=output_a)
|
66 |
|
67 |
+
with gr.Tab("Set"):
|
68 |
gr.Markdown("## Data Set")
|
69 |
gr.Markdown("A data set from a data source.")
|
70 |
textbox_b = gr.Textbox(label='Command')
|
|
|
72 |
button_b = gr.Button("Submit")
|
73 |
button_b.click(dprocess, inputs=[textbox_b], outputs=output_b)
|
74 |
|
75 |
+
with gr.Tab("Transform"):
|
76 |
gr.Markdown("## Data Transform")
|
77 |
gr.Markdown("A transformation of a data set into a new data set.")
|
78 |
textbox_c = gr.Textbox(label='Command')
|
|
|
80 |
button_c = gr.Button("Submit")
|
81 |
button_c.click(dprocess, inputs=[textbox_c], outputs=output_c)
|
82 |
|
83 |
+
with gr.Tab("Analysis"):
|
84 |
gr.Markdown("## Data Analysis")
|
85 |
gr.Markdown("Statistical analysis of a data set e.g., slope calculation on feature")
|
86 |
textbox_d = gr.Textbox(label='Command')
|
|
|
88 |
button_d = gr.Button("Submit")
|
89 |
button_d.click(dprocess, inputs=[textbox_d], outputs=output_d)
|
90 |
|
91 |
+
with gr.Tab("Visualization"):
|
92 |
gr.Markdown("## Data Visualization")
|
93 |
gr.Markdown("A visual insight from a data set or data analysis results e.g., matplotlib, sns, plotly")
|
94 |
+
textbox_e = gr.Textbox(label='Command')
|
95 |
+
output_e = gr.Textbox(label='Output')
|
96 |
+
button_e = gr.Button("Submit")
|
97 |
+
button_e.click(dprocess, inputs=[textbox_e], outputs=output_e)
|
98 |
|
99 |
+
with gr.Tab("Notification"):
|
100 |
gr.Markdown("## Notifications")
|
101 |
gr.Markdown("Scheduled transmission of data set, data analysis or data visualization direct to user device")
|
102 |
+
textbox_f = gr.Textbox(label='Command')
|
103 |
+
output_f = gr.Textbox(label='Output')
|
104 |
+
button_f = gr.Button("Submit")
|
105 |
+
button_f.click(dprocess, inputs=[textbox_f], outputs=output_f)
|
106 |
|
107 |
+
with gr.Tab("Automation"):
|
108 |
gr.Markdown("## Automation")
|
109 |
gr.Markdown("Multistep composition of functional elements")
|
110 |
+
textbox_g = gr.Textbox(label='Command')
|
111 |
+
output_g = gr.Textbox(label='Output')
|
112 |
+
button_g = gr.Button("Submit")
|
113 |
+
button_g.click(dprocess, 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,
|
|
|
120 |
# description="Data Workbench CLI",
|
121 |
# theme=gr.themes.Soft())
|
122 |
|
|
|
123 |
operand.queue()
|
124 |
operand.launch()
|