Spaces:
Sleeping
Sleeping
Commit
·
399c48b
1
Parent(s):
5463029
changes to hide tabs until data is loaded
Browse files
app.py
CHANGED
@@ -294,12 +294,12 @@ with gr.Blocks(theme='aliabid94/new-theme') as demo:
|
|
294 |
openai_api_key = gr.Textbox(label = 'Please provide your OpenAI API Key:', type = 'password', placeholder = 'Note: To use the OpenAI API, you need a paid account')
|
295 |
api_key_output = gr.Textbox(label = 'Result')
|
296 |
load_button = gr.Button('Load TLS Protect Cloud Data')
|
297 |
-
with gr.Tab("Answer Questions",
|
298 |
#prompt_tlspc_key = gr.Textbox(label = 'Please provide your TLS Protect Cloud API Key:')
|
299 |
prompt_questions = gr.Textbox(label = 'Input prompt here:', placeholder = "Try something like 'What is the name of the issuing template that has been used to request the most certificates?'")
|
300 |
text_output = gr.Textbox(label = 'Response:')
|
301 |
text_button = gr.Button("Submit")
|
302 |
-
with gr.Tab("Create Graphs",
|
303 |
prompt_reporting = gr.Textbox(label = 'Input prompt here:', placeholder = "Try something like 'Plot a line chart of certificate issuances over time'")
|
304 |
chart_output = gr.Plot(label = 'Output:')
|
305 |
chart_button = gr.Button("Submit")
|
|
|
294 |
openai_api_key = gr.Textbox(label = 'Please provide your OpenAI API Key:', type = 'password', placeholder = 'Note: To use the OpenAI API, you need a paid account')
|
295 |
api_key_output = gr.Textbox(label = 'Result')
|
296 |
load_button = gr.Button('Load TLS Protect Cloud Data')
|
297 |
+
with gr.Tab("Answer Questions", visible=False) as answer_questions:
|
298 |
#prompt_tlspc_key = gr.Textbox(label = 'Please provide your TLS Protect Cloud API Key:')
|
299 |
prompt_questions = gr.Textbox(label = 'Input prompt here:', placeholder = "Try something like 'What is the name of the issuing template that has been used to request the most certificates?'")
|
300 |
text_output = gr.Textbox(label = 'Response:')
|
301 |
text_button = gr.Button("Submit")
|
302 |
+
with gr.Tab("Create Graphs", visible=False) as create_graphs:
|
303 |
prompt_reporting = gr.Textbox(label = 'Input prompt here:', placeholder = "Try something like 'Plot a line chart of certificate issuances over time'")
|
304 |
chart_output = gr.Plot(label = 'Output:')
|
305 |
chart_button = gr.Button("Submit")
|