openfree commited on
Commit
fffa979
Β·
verified Β·
1 Parent(s): 9c04458

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +105 -28
app.py CHANGED
@@ -860,45 +860,21 @@ input[type="range"]::-webkit-slider-thumb {
860
  }
861
  }
862
 
863
- /* Hide Footer - Multiple Selectors for Gradio */
864
  footer {
865
  visibility: hidden !important;
866
  display: none !important;
867
- height: 0 !important;
868
- margin: 0 !important;
869
- padding: 0 !important;
870
  }
871
 
872
  .footer {
873
  visibility: hidden !important;
874
  display: none !important;
875
- height: 0 !important;
876
- margin: 0 !important;
877
- padding: 0 !important;
878
- }
879
-
880
- .gradio-footer {
881
- visibility: hidden !important;
882
- display: none !important;
883
- height: 0 !important;
884
- margin: 0 !important;
885
- padding: 0 !important;
886
  }
887
 
 
888
  footer[class*="svelte"] {
889
  visibility: hidden !important;
890
  display: none !important;
891
- height: 0 !important;
892
- margin: 0 !important;
893
- padding: 0 !important;
894
- }
895
-
896
- div[class*="footer"] {
897
- visibility: hidden !important;
898
- display: none !important;
899
- height: 0 !important;
900
- margin: 0 !important;
901
- padding: 0 !important;
902
  }
903
 
904
  /* Hide Gradio attribution links */
@@ -907,7 +883,9 @@ a[href*="gradio.app"] {
907
  display: none !important;
908
  }
909
 
910
- div:has(a[href*="gradio.app"]) {
 
 
911
  visibility: hidden !important;
912
  display: none !important;
913
  }
@@ -1031,13 +1009,112 @@ title_html = """
1031
  </div>
1032
  """
1033
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1034
 
1035
 
1036
  title_html = """
1037
  <div align="center" style="margin-bottom: 1em;">
1038
  <h1 style="margin-bottom: 0.2em; font-size: 1.8em; color: #333;">πŸ€– Robo Beam-Search</h1>
1039
  <p style="margin: 0.5em 0; font-size: 1em; color: #666;">
1040
- <strong>Base LLM:</strong> VIDraft/Gemma-3-R1984-4B
1041
  </p>
1042
  <p style="margin: 0.5em 0; font-size: 0.9em; color: #888; max-width: 600px; margin-left: auto; margin-right: auto;">
1043
  λΉ„νŒŒκ΄΄ X-RAY 검사/쑰사 이미지에 λŒ€ν•œ μœ„ν—˜ μš”μ†Œ 식별/뢄석 기반 λŒ€ν™”ν˜• μ˜¨ν”„λ ˆλ―ΈμŠ€ AI ν”Œλž«νΌ
 
860
  }
861
  }
862
 
863
+ /* Hide Footer - Safe and Specific Selectors */
864
  footer {
865
  visibility: hidden !important;
866
  display: none !important;
 
 
 
867
  }
868
 
869
  .footer {
870
  visibility: hidden !important;
871
  display: none !important;
 
 
 
 
 
 
 
 
 
 
 
872
  }
873
 
874
+ /* Hide only Gradio attribution footer specifically */
875
  footer[class*="svelte"] {
876
  visibility: hidden !important;
877
  display: none !important;
 
 
 
 
 
 
 
 
 
 
 
878
  }
879
 
880
  /* Hide Gradio attribution links */
 
883
  display: none !important;
884
  }
885
 
886
+ /* More specific footer hiding for Gradio */
887
+ .gradio-container footer,
888
+ .gradio-container .footer {
889
  visibility: hidden !important;
890
  display: none !important;
891
  }
 
1009
  </div>
1010
  """
1011
 
1012
+ title_html = """
1013
+ <div align="center" style="margin-bottom: 2em; padding: 2rem 0;" class="animate-fade-in">
1014
+ <div style="
1015
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
1016
+ background-clip: text;
1017
+ -webkit-background-clip: text;
1018
+ -webkit-text-fill-color: transparent;
1019
+ margin-bottom: 1rem;
1020
+ ">
1021
+ <h1 style="
1022
+ margin: 0;
1023
+ font-size: 3.5em;
1024
+ font-weight: 700;
1025
+ letter-spacing: -0.02em;
1026
+ text-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
1027
+ ">
1028
+ πŸ€– Robo Beam-Search
1029
+ </h1>
1030
+ </div>
1031
+
1032
+ <div style="
1033
+ background: rgba(255, 255, 255, 0.9);
1034
+ backdrop-filter: blur(15px);
1035
+ border-radius: 16px;
1036
+ padding: 1.5rem 2rem;
1037
+ margin: 1rem auto;
1038
+ max-width: 700px;
1039
+ border: 1px solid rgba(102, 126, 234, 0.2);
1040
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
1041
+ ">
1042
+ <p style="
1043
+ margin: 0.5em 0;
1044
+ font-size: 1.1em;
1045
+ color: #4a5568;
1046
+ font-weight: 500;
1047
+ ">
1048
+ <span style="
1049
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
1050
+ background-clip: text;
1051
+ -webkit-background-clip: text;
1052
+ -webkit-text-fill-color: transparent;
1053
+ font-weight: 600;
1054
+ ">Base LLM:</span> VIDraft/Gemma-3-R1984-4B
1055
+ </p>
1056
+ <p style="
1057
+ margin: 1em 0 0 0;
1058
+ font-size: 1em;
1059
+ color: #718096;
1060
+ line-height: 1.6;
1061
+ font-weight: 400;
1062
+ ">
1063
+ λΉ„νŒŒκ΄΄ X-RAY 검사/쑰사 이미지에 λŒ€ν•œ μœ„ν—˜ μš”μ†Œ 식별/뢄석 기반 λŒ€ν™”ν˜• μ˜¨ν”„λ ˆλ―ΈμŠ€ AI ν”Œλž«νΌ
1064
+ </p>
1065
+ </div>
1066
+
1067
+ <div style="
1068
+ display: flex;
1069
+ justify-content: center;
1070
+ gap: 1rem;
1071
+ margin-top: 2rem;
1072
+ flex-wrap: wrap;
1073
+ ">
1074
+ <div style="
1075
+ background: rgba(102, 126, 234, 0.1);
1076
+ border: 1px solid rgba(102, 126, 234, 0.3);
1077
+ border-radius: 12px;
1078
+ padding: 0.5rem 1rem;
1079
+ font-size: 0.9em;
1080
+ color: #667eea;
1081
+ font-weight: 500;
1082
+ ">
1083
+ πŸ” X-RAY 뢄석
1084
+ </div>
1085
+ <div style="
1086
+ background: rgba(118, 75, 162, 0.1);
1087
+ border: 1px solid rgba(118, 75, 162, 0.3);
1088
+ border-radius: 12px;
1089
+ padding: 0.5rem 1rem;
1090
+ font-size: 0.9em;
1091
+ color: #764ba2;
1092
+ font-weight: 500;
1093
+ ">
1094
+ πŸ›‘οΈ λ³΄μ•ˆ μŠ€μΊλ‹
1095
+ </div>
1096
+ <div style="
1097
+ background: rgba(240, 147, 251, 0.1);
1098
+ border: 1px solid rgba(240, 147, 251, 0.3);
1099
+ border-radius: 12px;
1100
+ padding: 0.5rem 1rem;
1101
+ font-size: 0.9em;
1102
+ color: #f093fb;
1103
+ font-weight: 500;
1104
+ ">
1105
+ 🌐 μ›Ή 검색
1106
+ </div>
1107
+ </div>
1108
+ </div>
1109
+ """
1110
+
1111
 
1112
 
1113
  title_html = """
1114
  <div align="center" style="margin-bottom: 1em;">
1115
  <h1 style="margin-bottom: 0.2em; font-size: 1.8em; color: #333;">πŸ€– Robo Beam-Search</h1>
1116
  <p style="margin: 0.5em 0; font-size: 1em; color: #666;">
1117
+ <strong>Base LLM:</strong> Gemma-3-R1984-4B / 12B/ 27B @Powered by VIDraft
1118
  </p>
1119
  <p style="margin: 0.5em 0; font-size: 0.9em; color: #888; max-width: 600px; margin-left: auto; margin-right: auto;">
1120
  λΉ„νŒŒκ΄΄ X-RAY 검사/쑰사 이미지에 λŒ€ν•œ μœ„ν—˜ μš”μ†Œ 식별/뢄석 기반 λŒ€ν™”ν˜• μ˜¨ν”„λ ˆλ―ΈμŠ€ AI ν”Œλž«νΌ