Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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():
|