Spaces:
openfree
/
Running on CPU Upgrade

ginipick commited on
Commit
e082c18
Β·
verified Β·
1 Parent(s): bb4b5d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +55 -0
app.py CHANGED
@@ -863,6 +863,33 @@ footer {visibility: hidden;}
863
  opacity: 1;
864
  transform: translateY(0);
865
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
866
  """
867
 
868
 
@@ -962,11 +989,39 @@ def respond(
962
 
963
 
964
  with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, title="NewsAI μ„œλΉ„μŠ€") as iface:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
965
  with gr.Tabs():
966
  # ꡭ가별 νƒ­
967
  with gr.Tab("ꡭ가별"):
968
  gr.Markdown("검색어λ₯Ό μž…λ ₯ν•˜κ³  μ›ν•˜λŠ” κ΅­κ°€(ν•œκ΅­ μ œμ™Έ)λ₯Όλ₯Ό μ„ νƒν•˜λ©΄, 검색어와 μΌμΉ˜ν•˜λŠ” 24μ‹œκ°„ 이내 λ‰΄μŠ€λ₯Ό μ΅œλŒ€ 100개 좜λ ₯ν•©λ‹ˆλ‹€.")
969
  gr.Markdown("κ΅­κ°€ 선택후 검색어에 'ν•œκΈ€'을 μž…λ ₯ν•˜λ©΄ ν˜„μ§€ μ–Έμ–΄λ‘œ λ²ˆμ—­λ˜μ–΄ κ²€μƒ‰ν•©λ‹ˆλ‹€. 예: 'Taiwan' κ΅­κ°€ 선택후 'μ‚Όμ„±' μž…λ ₯μ‹œ 'δΈ‰ζ˜Ÿ'으둜 μžλ™ 검색")
 
 
 
 
 
 
 
970
 
971
  with gr.Column():
972
  with gr.Row():
 
863
  opacity: 1;
864
  transform: translateY(0);
865
  }
866
+
867
+ /* Examples μŠ€νƒ€μΌλ§ */
868
+ .examples-table {
869
+ margin-top: 10px !important;
870
+ margin-bottom: 20px !important;
871
+ }
872
+
873
+ .examples-table button {
874
+ background-color: #f0f0f0 !important;
875
+ border: 1px solid #ddd !important;
876
+ border-radius: 4px !important;
877
+ padding: 5px 10px !important;
878
+ margin: 2px !important;
879
+ transition: all 0.3s ease !important;
880
+ }
881
+
882
+ .examples-table button:hover {
883
+ background-color: #e0e0e0 !important;
884
+ transform: translateY(-1px) !important;
885
+ box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
886
+ }
887
+
888
+ .examples-table .label {
889
+ font-weight: bold !important;
890
+ color: #444 !important;
891
+ margin-bottom: 5px !important;
892
+ }
893
  """
894
 
895
 
 
989
 
990
 
991
  with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, title="NewsAI μ„œλΉ„μŠ€") as iface:
992
+
993
+ # Examples μ •μ˜
994
+ EXAMPLES = [
995
+ ["AI"],
996
+ ["NVIDIA"],
997
+ ["OPENAI"],
998
+ ["META"],
999
+ ["FLUX"],
1000
+ ["GOOGLE"],
1001
+ ["CLAUDE"],
1002
+ ["XAI"],
1003
+ ["HUGGINGFACE"],
1004
+ ["HYNIX"],
1005
+ ["LLM"],
1006
+ ["CHATGPT"],
1007
+ ["MISTRAL"],
1008
+ ["MIDJOURNEY"],
1009
+ ["GPU"]
1010
+ ]
1011
+
1012
+
1013
  with gr.Tabs():
1014
  # ꡭ가별 νƒ­
1015
  with gr.Tab("ꡭ가별"):
1016
  gr.Markdown("검색어λ₯Ό μž…λ ₯ν•˜κ³  μ›ν•˜λŠ” κ΅­κ°€(ν•œκ΅­ μ œμ™Έ)λ₯Όλ₯Ό μ„ νƒν•˜λ©΄, 검색어와 μΌμΉ˜ν•˜λŠ” 24μ‹œκ°„ 이내 λ‰΄μŠ€λ₯Ό μ΅œλŒ€ 100개 좜λ ₯ν•©λ‹ˆλ‹€.")
1017
  gr.Markdown("κ΅­κ°€ 선택후 검색어에 'ν•œκΈ€'을 μž…λ ₯ν•˜λ©΄ ν˜„μ§€ μ–Έμ–΄λ‘œ λ²ˆμ—­λ˜μ–΄ κ²€μƒ‰ν•©λ‹ˆλ‹€. 예: 'Taiwan' κ΅­κ°€ 선택후 'μ‚Όμ„±' μž…λ ₯μ‹œ 'δΈ‰ζ˜Ÿ'으둜 μžλ™ 검색")
1018
+
1019
+ # Examples μΆ”κ°€
1020
+ gr.Examples(
1021
+ examples=EXAMPLES,
1022
+ inputs=query,
1023
+ label="자주 μ‚¬μš©λ˜λŠ” 검색어"
1024
+ )
1025
 
1026
  with gr.Column():
1027
  with gr.Row():