SVashishta1
commited on
Commit
·
f17757f
1
Parent(s):
6950cd1
Error Fix
Browse files
app.py
CHANGED
|
@@ -804,9 +804,9 @@ def generate_visualization(result_df, query):
|
|
| 804 |
return None
|
| 805 |
|
| 806 |
# Create Gradio interface
|
| 807 |
-
with gr.Blocks(title="
|
| 808 |
-
gr.Markdown("# 🤖
|
| 809 |
-
gr.Markdown("Upload documents, ask questions, and get
|
| 810 |
|
| 811 |
with gr.Tab("Chat"):
|
| 812 |
# Use a custom CSS to ensure images are displayed properly
|
|
@@ -823,6 +823,15 @@ with gr.Blocks(title="AI Document Analysis & Voice Assistant") as demo:
|
|
| 823 |
|
| 824 |
chatbot = gr.Chatbot(height=500, type="messages", elem_classes="chatbot-container")
|
| 825 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 826 |
with gr.Row():
|
| 827 |
with gr.Column(scale=8):
|
| 828 |
msg = gr.Textbox(
|
|
|
|
| 804 |
return None
|
| 805 |
|
| 806 |
# Create Gradio interface
|
| 807 |
+
with gr.Blocks(title="LLM Powered Database Chatbot") as demo:
|
| 808 |
+
gr.Markdown("# 🤖 LLM Powered Database Chatbot")
|
| 809 |
+
gr.Markdown("Upload documents, ask questions, and get AI-powered responses!")
|
| 810 |
|
| 811 |
with gr.Tab("Chat"):
|
| 812 |
# Use a custom CSS to ensure images are displayed properly
|
|
|
|
| 823 |
|
| 824 |
chatbot = gr.Chatbot(height=500, type="messages", elem_classes="chatbot-container")
|
| 825 |
|
| 826 |
+
# Add information about capabilities
|
| 827 |
+
gr.Markdown("""
|
| 828 |
+
### Capabilities:
|
| 829 |
+
- **Data Analysis**: Ask questions about your data and get detailed responses
|
| 830 |
+
- **Visualization**: Request and view graphs and charts of your data
|
| 831 |
+
- **Multiple File Types**: Upload PDFs, CSVs, DOCs, and more for analysis
|
| 832 |
+
- **Natural Language Queries**: Ask questions in plain English about your documents
|
| 833 |
+
""")
|
| 834 |
+
|
| 835 |
with gr.Row():
|
| 836 |
with gr.Column(scale=8):
|
| 837 |
msg = gr.Textbox(
|