seawolf2357 commited on
Commit
c1c32c3
ยท
verified ยท
1 Parent(s): 00a3371

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -9
app.py CHANGED
@@ -75,13 +75,23 @@ def inference(
75
  return image, seed
76
 
77
  # ์˜ˆ์‹œ ๋ฌธ๊ตฌ: ํŠน์ • ์ •์น˜์ธ Mr. KIM์˜ ๋‹ค์–‘ํ•œ ์ƒํ™ฉ์„ ๋ฌ˜์‚ฌ
 
78
  examples = [
79
- "Mr. KIM delivering a powerful speech in front of a large crowd with confident gestures and determined expression. [trigger]",
80
- "Mr. KIM attending an international summit, standing among other world leaders with a dignified and poised manner. [trigger]",
81
- "Mr. KIM holding a press conference, facing flashing cameras, wearing a tailored suit and a subtle lapel pin. [trigger]",
82
- "Mr. KIM visiting a rural area, warmly greeting local residents while discussing policies and improvements. [trigger]",
83
- "Mr. KIM in a dynamic interview setting, passionately outlining his visions for the future. [trigger]",
84
- "Mr. KIM preparing for an important debate, surrounded by paperwork, looking focused and resolute. [trigger]",
 
 
 
 
 
 
 
 
 
85
  ]
86
 
87
  # UI๋ฅผ ๋ถ‰์€ ๊ณ„์—ด ๊ทธ๋ผ๋””์—์ด์…˜์œผ๋กœ ๋””์ž์ธ
@@ -187,9 +197,9 @@ with gr.Blocks(css=custom_css, analytics_enabled=False) as demo:
187
  with gr.Group(elem_classes="model-description"):
188
  gr.HTML("""
189
  <p>
190
- ๋ณธ ๋ชจ๋ธ์€ ํŠน์ • ์ •์น˜์ธ์˜ ์–ผ๊ตด๊ณผ ์™ธ๋ชจ๋ฅผ ํ•™์Šตํ•œ LoRA ๋ชจ๋ธ์ž…๋‹ˆ๋‹ค.<br>
191
- ๊ฐœ์ธ ์‚ฌ์ง„ ๋“ฑ์„ ๋ฌด๋‹จ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋„๋ก ์œ ์˜ํ•ด ์ฃผ์„ธ์š”.<br>
192
- (์˜ˆ์‹œ prompt ์‚ฌ์šฉ ์‹œ [trigger]๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ์ตœ์ ์˜ ๊ฒฐ๊ณผ๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.)
193
  </p>
194
  """)
195
 
 
75
  return image, seed
76
 
77
  # ์˜ˆ์‹œ ๋ฌธ๊ตฌ: ํŠน์ • ์ •์น˜์ธ Mr. KIM์˜ ๋‹ค์–‘ํ•œ ์ƒํ™ฉ์„ ๋ฌ˜์‚ฌ
78
+
79
  examples = [
80
+ "Mr. KIM delivering a powerful speech in front of a large crowd with confident gestures and determined expression. ",
81
+ "Mr. KIM holding a press conference, facing flashing cameras, wearing a tailored suit and a subtle lapel pin. ",
82
+ "Mr. KIM visiting a rural area, warmly greeting local residents 'all womans'(different faces) while discussing policies and improvements. ",
83
+ "Mr. KIM in a dynamic interview setting, passionately outlining his visions for the future.",
84
+ "Mr. KIM preparing for an important debate, surrounded by paperwork, looking focused and resolute. ",
85
+ "Mr. KIM holding up a 'NO.1 KOREA' banner with both hands, showing patriotic pride and determination for national excellence. ",
86
+ "Mr. KIM jogging in a park wearing athletic gear, demonstrating healthy lifestyle and energetic leadership qualities.",
87
+ "Mr. KIM raising both arms in celebration with a triumphant expression, showing victory and hope for the future.",
88
+ "Mr. KIM warmly shaking hands with female citizens in a crowded street, showing genuine care and connection with women voters. ",
89
+ "Mr. KIM participating in a community event, surrounded by enthusiastic female supporters cheering and waving flags. ",
90
+ "Mr. KIM at a campaign rally, pointing toward the horizon with an inspiring gesture while female audience members applaud. ",
91
+ "Mr. KIM visiting a local market, engaging in friendly conversation with female vendors and shopkeepers. ",
92
+ "Mr. KIM at a town hall meeting, attentively listening to concerns raised by female constituents with a compassionate expression.",
93
+ "Mr. KIM cutting a ribbon at a new facility opening, smiling broadly while female community leaders stand beside him. ",
94
+ "Mr. KIM walking through a university campus, discussing education policies with female students and professors. ",
95
  ]
96
 
97
  # UI๋ฅผ ๋ถ‰์€ ๊ณ„์—ด ๊ทธ๋ผ๋””์—์ด์…˜์œผ๋กœ ๋””์ž์ธ
 
197
  with gr.Group(elem_classes="model-description"):
198
  gr.HTML("""
199
  <p>
200
+ ๋ณธ ๋ชจ๋ธ์€ ์—ฐ๊ตฌ ๋ชฉ์ ์œผ๋กœ ํŠน์ •์ธ์˜ ์–ผ๊ตด๊ณผ ์™ธ๋ชจ๋ฅผ ํ•™์Šตํ•œ LoRA ๋ชจ๋ธ์ž…๋‹ˆ๋‹ค.<br>
201
+ ๋ชฉ์ ์™ธ์˜ ์šฉ๋„๋กœ ๋ฌด๋‹จ ์‚ฌ์šฉ ์•Š๋„๋ก ์œ ์˜ํ•ด ์ฃผ์„ธ์š”.<br>
202
+ (์˜ˆ์‹œ prompt ์‚ฌ์šฉ ์‹œ ๋ฐ˜๋“œ์‹œ 'kim'์„ ํฌํ•จํ•˜์—ฌ์•ผ ์ตœ์ ์˜ ๊ฒฐ๊ณผ๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.)
203
  </p>
204
  """)
205