eogreen commited on
Commit
4b57dab
1 Parent(s): 70caea7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +60 -60
app.py CHANGED
@@ -45,79 +45,79 @@ def process_command(command, ddddd):
45
  # value="aws")
46
 
47
  # Create Gradio interface with tabs
48
- with gr.Blocks(theme=gr.themes.Soft()) as operand:
49
 
50
- gr.Markdown("# operand")
51
- gr.Markdown("No-code Data Automation Studio<br><br>")
52
 
53
- with gr.Tab("Source"):
54
 
55
- gr.Markdown("## Data Sources")
56
- gr.Markdown("Instances of data sources e.g., Jira Cloud endpoint, Trello endpoint, Github endpoint")
57
 
58
- textbox_a = gr.Textbox(label='Command')
59
- output_a = gr.Textbox(label='Output')
60
- button_a = gr.Button("Submit")
61
- button_a.click(process_command, inputs=[textbox_a], outputs=output_a)
62
 
63
- with gr.Accordion("Syntax"):
64
- gr.Markdown("<br>data_source my-ds-name1 my-ds-desc1 my-jira-endpoint1 my-jira-creds1")
65
 
66
- with gr.Tab("Set"):
67
- gr.Markdown("## Data Sets")
68
- gr.Markdown("A data set from a data source.")
69
- textbox_b = gr.Textbox(label='Command')
70
- output_b = gr.Textbox(label='Output')
71
- button_b = gr.Button("Submit")
72
- button_b.click(process_command, inputs=[textbox_b], outputs=output_b)
73
 
74
- with gr.Tab("Transform"):
75
- gr.Markdown("## Data Transforms")
76
- gr.Markdown("A transformation of a data set into a new data set.")
77
- textbox_c = gr.Textbox(label='Command')
78
- output_c = gr.Textbox(label='Output')
79
- button_c = gr.Button("Submit")
80
- button_c.click(process_command, inputs=[textbox_c], outputs=output_c)
81
 
82
- with gr.Tab("Analysis"):
83
- gr.Markdown("## Data Analyses")
84
- gr.Markdown("Statistical analysis of a data set e.g., slope calculation on feature")
85
- textbox_d = gr.Textbox(label='Command')
86
- output_d = gr.Textbox(label='Output')
87
- button_d = gr.Button("Submit")
88
- button_d.click(process_command, inputs=[textbox_d], outputs=output_d)
89
 
90
- with gr.Tab("Visualization"):
91
- gr.Markdown("## Data Visualizations")
92
- gr.Markdown("A visual insight from a data set or data analysis results e.g., matplotlib, sns, plotly")
93
- textbox_e = gr.Textbox(label='Command')
94
- output_e = gr.Textbox(label='Output')
95
- button_e = gr.Button("Submit")
96
- button_e.click(process_command, inputs=[textbox_e], outputs=output_e)
97
 
98
- with gr.Tab("Notification"):
99
- gr.Markdown("## Notifications")
100
- gr.Markdown("Scheduled transmission of data set, data analysis or data visualization direct to user device")
101
- textbox_f = gr.Textbox(label='Command')
102
- output_f = gr.Textbox(label='Output')
103
- button_f = gr.Button("Submit")
104
- button_f.click(process_command, inputs=[textbox_f], outputs=output_f)
105
 
106
- with gr.Tab("Automation"):
107
- gr.Markdown("## Automation")
108
- gr.Markdown("Multistep composition of functional elements")
109
- textbox_g = gr.Textbox(label='Command')
110
- output_g = gr.Textbox(label='Output')
111
- button_g = gr.Button("Submit")
112
- button_g.click(process_command, inputs=[textbox_g], outputs=output_g)
113
 
114
  # For the inputs parameter of Interface provide [textbox,company] with outputs parameter of Interface provide prediction
115
- # demo = gr.Interface(fn=dprocess,
116
- # inputs=[textbox],
117
- # outputs="text",
118
- # title="operand",
119
- # description="Data Workbench CLI",
120
- # theme=gr.themes.Soft())
121
 
122
  operand.queue()
123
  operand.launch()
 
45
  # value="aws")
46
 
47
  # Create Gradio interface with tabs
48
+ # with gr.Blocks(theme=gr.themes.Soft()) as operand:
49
 
50
+ # gr.Markdown("# operand")
51
+ # gr.Markdown("No-code Data Automation Studio<br><br>")
52
 
53
+ # with gr.Tab("Source"):
54
 
55
+ # gr.Markdown("## Data Sources")
56
+ # gr.Markdown("Instances of data sources e.g., Jira Cloud endpoint, Trello endpoint, Github endpoint")
57
 
58
+ # textbox_a = gr.Textbox(label='Command')
59
+ # output_a = gr.Textbox(label='Output')
60
+ # button_a = gr.Button("Submit")
61
+ # button_a.click(process_command, inputs=[textbox_a], outputs=output_a)
62
 
63
+ # with gr.Accordion("Syntax"):
64
+ # gr.Markdown("<br>data_source my-ds-name1 my-ds-desc1 my-jira-endpoint1 my-jira-creds1")
65
 
66
+ # with gr.Tab("Set"):
67
+ # gr.Markdown("## Data Sets")
68
+ # gr.Markdown("A data set from a data source.")
69
+ # textbox_b = gr.Textbox(label='Command')
70
+ # output_b = gr.Textbox(label='Output')
71
+ # button_b = gr.Button("Submit")
72
+ # button_b.click(process_command, inputs=[textbox_b], outputs=output_b)
73
 
74
+ # with gr.Tab("Transform"):
75
+ # gr.Markdown("## Data Transforms")
76
+ # gr.Markdown("A transformation of a data set into a new data set.")
77
+ # textbox_c = gr.Textbox(label='Command')
78
+ # output_c = gr.Textbox(label='Output')
79
+ # button_c = gr.Button("Submit")
80
+ # button_c.click(process_command, inputs=[textbox_c], outputs=output_c)
81
 
82
+ # with gr.Tab("Analysis"):
83
+ # gr.Markdown("## Data Analyses")
84
+ # gr.Markdown("Statistical analysis of a data set e.g., slope calculation on feature")
85
+ # textbox_d = gr.Textbox(label='Command')
86
+ # output_d = gr.Textbox(label='Output')
87
+ # button_d = gr.Button("Submit")
88
+ # button_d.click(process_command, inputs=[textbox_d], outputs=output_d)
89
 
90
+ # with gr.Tab("Visualization"):
91
+ # gr.Markdown("## Data Visualizations")
92
+ # gr.Markdown("A visual insight from a data set or data analysis results e.g., matplotlib, sns, plotly")
93
+ # textbox_e = gr.Textbox(label='Command')
94
+ # output_e = gr.Textbox(label='Output')
95
+ # button_e = gr.Button("Submit")
96
+ # button_e.click(process_command, inputs=[textbox_e], outputs=output_e)
97
 
98
+ # with gr.Tab("Notification"):
99
+ # gr.Markdown("## Notifications")
100
+ # gr.Markdown("Scheduled transmission of data set, data analysis or data visualization direct to user device")
101
+ # textbox_f = gr.Textbox(label='Command')
102
+ # output_f = gr.Textbox(label='Output')
103
+ # button_f = gr.Button("Submit")
104
+ # button_f.click(process_command, inputs=[textbox_f], outputs=output_f)
105
 
106
+ # with gr.Tab("Automation"):
107
+ # gr.Markdown("## Automation")
108
+ # gr.Markdown("Multistep composition of functional elements")
109
+ # textbox_g = gr.Textbox(label='Command')
110
+ # output_g = gr.Textbox(label='Output')
111
+ # button_g = gr.Button("Submit")
112
+ # button_g.click(process_command, inputs=[textbox_g], outputs=output_g)
113
 
114
  # For the inputs parameter of Interface provide [textbox,company] with outputs parameter of Interface provide prediction
115
+ operand = gr.Interface(fn=dprocess,
116
+ inputs=[textbox],
117
+ outputs="text",
118
+ title="operand",
119
+ description="Data Workbench CLI",
120
+ theme=gr.themes.Soft())
121
 
122
  operand.queue()
123
  operand.launch()