ragunath-ravi commited on
Commit
e107a69
Β·
verified Β·
1 Parent(s): 14f7fae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -17
app.py CHANGED
@@ -600,7 +600,8 @@ def create_interface():
600
  padding: 1rem 2rem;
601
  }
602
 
603
- .example-btn {
 
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
- .example-btn:hover {
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.HTML("<div class='examples-container'>")
724
- gr.Examples(
725
- examples=[
726
- "What are the main topics discussed in the documents?",
727
- "Can you summarize the key findings and insights?",
728
- "What metrics, KPIs, or data points are mentioned?",
729
- "What recommendations or action items are provided?",
730
- "Are there any trends, patterns, or correlations identified?",
731
- "What are the potential risks or challenges mentioned?"
732
- ],
733
- inputs=msg,
734
- elem_classes=["example-btn"]
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):