Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -600,7 +600,8 @@ def create_interface():
|
|
600 |
padding: 1rem 2rem;
|
601 |
}
|
602 |
|
603 |
-
|
|
|
604 |
background: rgba(255, 255, 255, 0.8) !important;
|
605 |
border: 1px solid rgba(102, 126, 234, 0.3) !important;
|
606 |
border-radius: 20px !important;
|
@@ -611,7 +612,7 @@ def create_interface():
|
|
611 |
transition: all 0.3s ease !important;
|
612 |
}
|
613 |
|
614 |
-
|
615 |
background: rgba(102, 126, 234, 0.1) !important;
|
616 |
border-color: #667eea !important;
|
617 |
transform: translateY(-1px) !important;
|
@@ -697,7 +698,6 @@ def create_interface():
|
|
697 |
show_copy_button=True,
|
698 |
type="messages",
|
699 |
avatar_images=("π§βπΌ", "π€"),
|
700 |
-
bubble_full_width=False,
|
701 |
show_share_button=True
|
702 |
)
|
703 |
|
@@ -720,20 +720,19 @@ def create_interface():
|
|
720 |
)
|
721 |
|
722 |
# Examples
|
723 |
-
gr.
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
gr.HTML("</div>")
|
737 |
|
738 |
# Event handlers
|
739 |
def process_files_handler(files):
|
|
|
600 |
padding: 1rem 2rem;
|
601 |
}
|
602 |
|
603 |
+
/* Example buttons styling - using data attributes */
|
604 |
+
[data-testid="example"] button {
|
605 |
background: rgba(255, 255, 255, 0.8) !important;
|
606 |
border: 1px solid rgba(102, 126, 234, 0.3) !important;
|
607 |
border-radius: 20px !important;
|
|
|
612 |
transition: all 0.3s ease !important;
|
613 |
}
|
614 |
|
615 |
+
[data-testid="example"] button:hover {
|
616 |
background: rgba(102, 126, 234, 0.1) !important;
|
617 |
border-color: #667eea !important;
|
618 |
transform: translateY(-1px) !important;
|
|
|
698 |
show_copy_button=True,
|
699 |
type="messages",
|
700 |
avatar_images=("π§βπΌ", "π€"),
|
|
|
701 |
show_share_button=True
|
702 |
)
|
703 |
|
|
|
720 |
)
|
721 |
|
722 |
# Examples
|
723 |
+
with gr.Row():
|
724 |
+
with gr.Column():
|
725 |
+
gr.Examples(
|
726 |
+
examples=[
|
727 |
+
"What are the main topics discussed in the documents?",
|
728 |
+
"Can you summarize the key findings and insights?",
|
729 |
+
"What metrics, KPIs, or data points are mentioned?",
|
730 |
+
"What recommendations or action items are provided?",
|
731 |
+
"Are there any trends, patterns, or correlations identified?",
|
732 |
+
"What are the potential risks or challenges mentioned?"
|
733 |
+
],
|
734 |
+
inputs=msg
|
735 |
+
)
|
|
|
736 |
|
737 |
# Event handlers
|
738 |
def process_files_handler(files):
|