Update app.py
Browse files
app.py
CHANGED
@@ -45,16 +45,18 @@ textbox = gr.Textbox(label='Command')
|
|
45 |
# value="aws")
|
46 |
|
47 |
# Create Gradio interface
|
48 |
-
#
|
|
|
49 |
|
50 |
-
#
|
51 |
-
|
52 |
-
|
|
|
|
|
53 |
|
54 |
-
with gr.Blocks() as demo:
|
55 |
-
title: "foo"
|
56 |
with gr.Tab("Tab A"):
|
57 |
gr.Markdown("## This is Tab A")
|
|
|
58 |
textbox_a = gr.Textbox(label='Command A')
|
59 |
output_a = gr.Textbox(label='Output A')
|
60 |
button_a = gr.Button("Submit A")
|
@@ -62,6 +64,7 @@ with gr.Blocks() as demo:
|
|
62 |
|
63 |
with gr.Tab("Tab B"):
|
64 |
gr.Markdown("## This is Tab B")
|
|
|
65 |
textbox_b = gr.Textbox(label='Command B')
|
66 |
output_b = gr.Textbox(label='Output B')
|
67 |
button_b = gr.Button("Submit B")
|
@@ -69,6 +72,7 @@ with gr.Blocks() as demo:
|
|
69 |
|
70 |
with gr.Tab("Tab C"):
|
71 |
gr.Markdown("## This is Tab C")
|
|
|
72 |
textbox_c = gr.Textbox(label='Command C')
|
73 |
output_c = gr.Textbox(label='Output C')
|
74 |
button_c = gr.Button("Submit C")
|
@@ -83,5 +87,5 @@ with gr.Blocks() as demo:
|
|
83 |
# theme=gr.themes.Soft())
|
84 |
|
85 |
|
86 |
-
|
87 |
-
|
|
|
45 |
# value="aws")
|
46 |
|
47 |
# Create Gradio interface
|
48 |
+
# Set-up the Gradio UI
|
49 |
+
textbox = gr.Textbox(label='Command')
|
50 |
|
51 |
+
# Create Gradio interface with tabs
|
52 |
+
with gr.Blocks(theme=gr.themes.Soft()) as operand:
|
53 |
+
|
54 |
+
gr.Markdown("# Operand CLI")
|
55 |
+
gr.Markdown("This application allows you to process commands for different companies.")
|
56 |
|
|
|
|
|
57 |
with gr.Tab("Tab A"):
|
58 |
gr.Markdown("## This is Tab A")
|
59 |
+
gr.Markdown("Description for Tab A")
|
60 |
textbox_a = gr.Textbox(label='Command A')
|
61 |
output_a = gr.Textbox(label='Output A')
|
62 |
button_a = gr.Button("Submit A")
|
|
|
64 |
|
65 |
with gr.Tab("Tab B"):
|
66 |
gr.Markdown("## This is Tab B")
|
67 |
+
gr.Markdown("Description for Tab B")
|
68 |
textbox_b = gr.Textbox(label='Command B')
|
69 |
output_b = gr.Textbox(label='Output B')
|
70 |
button_b = gr.Button("Submit B")
|
|
|
72 |
|
73 |
with gr.Tab("Tab C"):
|
74 |
gr.Markdown("## This is Tab C")
|
75 |
+
gr.Markdown("Description for Tab C")
|
76 |
textbox_c = gr.Textbox(label='Command C')
|
77 |
output_c = gr.Textbox(label='Output C')
|
78 |
button_c = gr.Button("Submit C")
|
|
|
87 |
# theme=gr.themes.Soft())
|
88 |
|
89 |
|
90 |
+
operand.queue()
|
91 |
+
operand.launch()
|