openfree commited on
Commit
82ae436
โ€ข
1 Parent(s): 03d490f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +40 -4
app.py CHANGED
@@ -969,17 +969,53 @@ input:focus, textarea:focus {
969
  #refresh-button:active {
970
  transform: scale(0.95);
971
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
972
  }
973
  '''
974
 
975
  with gr.Blocks(theme=custom_theme, css=css, delete_cache=(60, 3600)) as app:
976
  loras_state = gr.State(loras)
977
  selected_indices = gr.State([])
978
-
979
  gr.Markdown(
980
- """# ๐ŸŽจ GiniGen
981
- ### ์‚ฌ์šฉ ์•ˆ๋‚ด: ๊ฐค๋Ÿฌ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ๋ชจ๋ธ์„ ์„ ํƒ(์ตœ๋Œ€ 3๊ฐœ๊นŒ์ง€) < ํ”„๋กฌํ”„ํŠธ์— ํ•œ๊ธ€ ๋˜๋Š” ์˜๋ฌธ์œผ๋กœ ์›ํ•˜๋Š” ๋‚ด์šฉ์„ ์ž…๋ ฅ < Generate ๋ฒ„ํŠผ ์‹คํ–‰"""
982
- )
 
 
983
  # ์ƒˆ๋กœ๊ณ ์นจ ๋ฒ„ํŠผ ์ถ”๊ฐ€
984
  with gr.Row():
985
  refresh_button = gr.Button("๐Ÿ”„ ๋ชจ๋ธ ์ƒˆ๋กœ๊ณ ์นจ(๋‚˜๋งŒ์˜ ๋งž์ถค ํ•™์Šต๋œ Private ๋ชจ๋ธ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ)", variant="secondary")
 
969
  #refresh-button:active {
970
  transform: scale(0.95);
971
  }
972
+ /* Markdown ํ…์ŠคํŠธ ์Šคํƒ€์ผ */
973
+ .markdown {
974
+ color: white !important;
975
+ }
976
+
977
+ /* ํ”„๋กฌํ”„ํŠธ ์ž…๋ ฅ ํ•„๋“œ ํ…์ŠคํŠธ ์Šคํƒ€์ผ */
978
+ textarea, input[type="text"] {
979
+ color: white !important;
980
+ }
981
+
982
+ /* ๋ผ๋ฒจ ํ…์ŠคํŠธ ์Šคํƒ€์ผ */
983
+ label, .label-text {
984
+ color: white !important;
985
+ }
986
+
987
+ /* Markdown ํ—ค๋” ์Šคํƒ€์ผ */
988
+ .markdown h1,
989
+ .markdown h2,
990
+ .markdown h3,
991
+ .markdown h4,
992
+ .markdown h5,
993
+ .markdown h6,
994
+ .markdown p {
995
+ color: white !important;
996
+ }
997
+
998
+ /* ์ž…๋ ฅ ํ•„๋“œ placeholder ์Šคํƒ€์ผ */
999
+ ::placeholder {
1000
+ color: rgba(255, 255, 255, 0.5) !important;
1001
+ }
1002
+
1003
+ /* ํ…์ŠคํŠธ ์˜์—ญ ์Šคํƒ€์ผ */
1004
+ .gradio-container textarea {
1005
+ color: white !important;
1006
  }
1007
  '''
1008
 
1009
  with gr.Blocks(theme=custom_theme, css=css, delete_cache=(60, 3600)) as app:
1010
  loras_state = gr.State(loras)
1011
  selected_indices = gr.State([])
1012
+
1013
  gr.Markdown(
1014
+ """# ๐ŸŽจ GiniGen
1015
+ ### ์‚ฌ์šฉ ์•ˆ๋‚ด: ๊ฐค๋Ÿฌ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ๋ชจ๋ธ์„ ์„ ํƒ(์ตœ๋Œ€ 3๊ฐœ๊นŒ์ง€) < ํ”„๋กฌํ”„ํŠธ์— ํ•œ๊ธ€ ๋˜๋Š” ์˜๋ฌธ์œผ๋กœ ์›ํ•˜๋Š” ๋‚ด์šฉ์„ ์ž…๋ ฅ < Generate ๋ฒ„ํŠผ ์‹คํ–‰""",
1016
+ elem_classes=["markdown"]
1017
+ )
1018
+
1019
  # ์ƒˆ๋กœ๊ณ ์นจ ๋ฒ„ํŠผ ์ถ”๊ฐ€
1020
  with gr.Row():
1021
  refresh_button = gr.Button("๐Ÿ”„ ๋ชจ๋ธ ์ƒˆ๋กœ๊ณ ์นจ(๋‚˜๋งŒ์˜ ๋งž์ถค ํ•™์Šต๋œ Private ๋ชจ๋ธ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ)", variant="secondary")