fantaxy commited on
Commit
b8af109
·
verified ·
1 Parent(s): 1c85335

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -0
app.py CHANGED
@@ -100,8 +100,31 @@ footer {visibility: hidden}
100
  border-radius: 8px;
101
  background-color: #f8f9fa;
102
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  """
104
 
 
 
 
 
 
 
 
 
 
 
105
  with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
106
  gr.HTML("""
107
  <div style="text-align: center; max-width: 800px; margin: 0 auto;">
 
100
  border-radius: 8px;
101
  background-color: #f8f9fa;
102
  }
103
+
104
+ /* Examples 텍스트 색상 변경 */
105
+ .gr-examples {
106
+ color: black !important;
107
+ }
108
+
109
+ .gr-examples * {
110
+ color: black !important;
111
+ }
112
+
113
+ .gr-sample-text {
114
+ color: black !important;
115
+ }
116
  """
117
 
118
+ # Examples 부분 수정
119
+ gr.Examples(
120
+ examples=examples,
121
+ inputs=[prompt],
122
+ outputs=[result, result_full, seed],
123
+ fn=infer,
124
+ cache_examples=True, # "lazy" 대신 True로 변경
125
+ label="Click on any example to try it out"
126
+ )
127
+
128
  with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
129
  gr.HTML("""
130
  <div style="text-align: center; max-width: 800px; margin: 0 auto;">