Add loading warning to doc_db
Browse files- templates/doc_db.py +4 -0
templates/doc_db.py
CHANGED
@@ -24,6 +24,10 @@ with gr.Blocks() as demo:
|
|
24 |
</div>
|
25 |
</div>
|
26 |
""", elem_classes="description_component")
|
|
|
|
|
|
|
|
|
27 |
connection_string = gr.Textbox(label="Connection String", value="dataanalyst0.l1klmww.mongodb.net/")
|
28 |
with gr.Row():
|
29 |
connection_user = gr.Textbox(label="Connection User", value="virtual-data-analyst")
|
|
|
24 |
</div>
|
25 |
</div>
|
26 |
""", elem_classes="description_component")
|
27 |
+
|
28 |
+
status_message = gr.HTML(value='<p style="color:green;text-align:center;font-size:18px;">Please be patient while connecting as we need to generate '
|
29 |
+
'and read a schema before connection can be successful. This process can take a few minutes.</p>', padding=False)
|
30 |
+
|
31 |
connection_string = gr.Textbox(label="Connection String", value="dataanalyst0.l1klmww.mongodb.net/")
|
32 |
with gr.Row():
|
33 |
connection_user = gr.Textbox(label="Connection User", value="virtual-data-analyst")
|