huangrh9 commited on
Commit
045dbf4
·
verified ·
1 Parent(s): 7cd9da7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -563,14 +563,17 @@ block_css = """
563
  min-width: min(120px,100%);
564
  }
565
  .message-row img {
566
- max-width: 80%;
567
- max-height: 400px;
568
- height: auto;
569
- display: block;
570
- margin-top: 10px;
571
- margin-bottom: 5px;
572
- border-radius: 5px;
573
- border: 1px solid #e0e0e0; /* Add a light border */
 
 
 
574
  }
575
  .avatar-container img {
576
  padding: 0px !important;
@@ -581,7 +584,6 @@ block_css = """
581
  }
582
  """
583
 
584
-
585
  def load_initial_state_and_example1():
586
  """
587
  Loads the initial Conversation state and prepares the inputs
 
563
  min-width: min(120px,100%);
564
  }
565
  .message-row img {
566
+ max-width: 80% !important;
567
+ max-height: 400px !important;
568
+ height: auto !important;
569
+ width: auto !important;
570
+ display: block !important;
571
+ margin-top: 10px !important;
572
+ margin-bottom: 5px !important;
573
+ border-radius: 5px !important;
574
+ border: 1px solid #e0e0e0 !important;
575
+ object-fit: contain !important;
576
+ aspect-ratio: auto !important;
577
  }
578
  .avatar-container img {
579
  padding: 0px !important;
 
584
  }
585
  """
586
 
 
587
  def load_initial_state_and_example1():
588
  """
589
  Loads the initial Conversation state and prepares the inputs