Anusha806 commited on
Commit
6964b8e
·
1 Parent(s): 8234221
Files changed (1) hide show
  1. app.py +67 -8
app.py CHANGED
@@ -785,6 +785,7 @@ def handle_voice_search(vf_path, a, offset, gender_ui):
785
  seen_ids = {r[1] for r in results}
786
  return results, 12, transcription, None, gender_override, results, seen_ids
787
 
 
788
  custom_css = """
789
  /* === Global Styling === */
790
  /* === Override Gradio default background === */
@@ -948,19 +949,79 @@ input[type="text"], .gr-textbox textarea, .gr-dropdown, .gr-slider {
948
  padding-top: 1rem;
949
  }
950
 
951
- /* === Main Container Centered and Wide === */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
952
  #main-container {
953
- max-width: 90%;
954
- width: 1100px;
955
- margin: 40px auto !important;
956
- padding: 24px;
957
  background: #ffffff;
958
  border-radius: 18px;
959
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
960
- border: 3px solid orange; /* Orange border */
 
 
961
  }
962
 
 
 
 
 
 
 
 
 
 
963
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
964
 
965
 
966
 
@@ -1002,8 +1063,6 @@ button[role="tab"]:hover {
1002
  """
1003
 
1004
 
1005
-
1006
-
1007
  with gr.Blocks(css=custom_css) as demo:
1008
  with gr.Column(elem_id="app-bg"):
1009
  with gr.Column(elem_id="main-container"):
 
785
  seen_ids = {r[1] for r in results}
786
  return results, 12, transcription, None, gender_override, results, seen_ids
787
 
788
+
789
  custom_css = """
790
  /* === Global Styling === */
791
  /* === Override Gradio default background === */
 
949
  padding-top: 1rem;
950
  }
951
 
952
+ # /* === Main Container Centered and Wide === */
953
+ # #main-container {
954
+ # max-width: 90%;
955
+ # width: 1100px;
956
+ # margin: 40px auto !important;
957
+ # padding: 24px;
958
+ # background: #ffffff;
959
+ # border-radius: 18px;
960
+ # box-shadow: 0 10px 30px rgba(0,0,0,0.08);
961
+ # border: 3px solid orange; /* Orange border */
962
+ # }
963
+ # #main-container {
964
+ # max-width: 90%;
965
+ # width: 1100px;
966
+ # height: 90vh;
967
+ # overflow-y: auto;
968
+ # padding: 24px;
969
+ # background: #ffffff;
970
+ # border-radius: 18px;
971
+ # box-shadow: 0 10px 30px rgba(0,0,0,0.08);
972
+ # border: 3px solid orange;
973
+ # margin: 40px auto;
974
+ # position: relative;
975
+ # display: flex;
976
+ # flex-direction: column;
977
+ # }
978
+
979
  #main-container {
980
+ width: 95%;
981
+ max-width: 1100px;
982
+ margin: 20px auto !important;
983
+ padding: 16px;
984
  background: #ffffff;
985
  border-radius: 18px;
986
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
987
+ border: 3px solid orange;
988
+ overflow-y: auto;
989
+ max-height: 90vh;
990
  }
991
 
992
+ /* For phones and smaller devices */
993
+ @media (max-width: 768px) {
994
+ #main-container {
995
+ width: 100%;
996
+ margin: 8px;
997
+ padding: 12px;
998
+ border-radius: 12px;
999
+ max-height: none;
1000
+ }
1001
 
1002
+ .gr-button {
1003
+ font-size: 14px;
1004
+ height: 3.2rem;
1005
+ }
1006
+
1007
+ input[type="text"], .gr-textbox textarea, .gr-dropdown, .gr-slider {
1008
+ font-size: 14px;
1009
+ padding: 8px !important;
1010
+ }
1011
+
1012
+ h1, .gr-markdown h1 {
1013
+ font-size: 1.6rem !important;
1014
+ }
1015
+
1016
+ .gr-gallery-item {
1017
+ width: 100px !important;
1018
+ height: 100px !important;
1019
+ }
1020
+
1021
+ .gr-image {
1022
+ height: auto !important;
1023
+ }
1024
+ }
1025
 
1026
 
1027
 
 
1063
  """
1064
 
1065
 
 
 
1066
  with gr.Blocks(css=custom_css) as demo:
1067
  with gr.Column(elem_id="app-bg"):
1068
  with gr.Column(elem_id="main-container"):