AIRider commited on
Commit
5f0a393
·
verified ·
1 Parent(s): 8ab6152

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -10
app.py CHANGED
@@ -47,9 +47,9 @@ def generate_image(prompt, num_inference_steps, height, width, guidance_scale, s
47
 
48
  # 예제 프롬프트
49
  examples = [
50
- ["안녕하는 팻말을 들고 있는 고양이"],
51
- ["달에서 알을 깨고 나오는 작은 우주인"],
52
- ["미래적인 사이보그 슈트를 입고 화성에 있는 우주인"],
53
  ]
54
 
55
  # 커스텀 CSS
@@ -69,6 +69,19 @@ h1 {
69
  .gr-button-primary:hover {
70
  background-color: #EA580C !important;
71
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  '''
73
 
74
  # Gradio 인터페이스 생성
@@ -97,17 +110,26 @@ with gr.Blocks(
97
  with gr.Column():
98
  gr.HTML(
99
  """
100
- <h1>FLUX.1-dev 이미지 생성기</h1>
101
  """
102
  )
103
  gr.HTML(
104
  """
105
- <div style='text-align: center'>
106
- 제작: <a href='https://linktr.ee/Nick088' target='_blank'>Nick088</a>
107
- <br>
108
- <a href="https://discord.gg/AQsmBmgEPy">
109
- <img src="https://img.shields.io/discord/1198701940511617164?color=%23738ADB&label=디스코드&style=for-the-badge" alt="Discord">
110
- </a>
 
 
 
 
 
 
 
 
 
111
  </div>
112
  """
113
  )
 
47
 
48
  # 예제 프롬프트
49
  examples = [
50
+ ["A cat holding a sign that says hello world"],
51
+ ["a tiny astronaut hatching from an egg on the moon"],
52
+ ["An astronaut on mars in a futuristic cyborg suit"],
53
  ]
54
 
55
  # 커스텀 CSS
 
69
  .gr-button-primary:hover {
70
  background-color: #EA580C !important;
71
  }
72
+ .footer-content {
73
+ text-align: center;
74
+ margin-top: 2rem;
75
+ font-family: 'Pretendard', sans-serif;
76
+ }
77
+ .footer-content a {
78
+ color: #EA580C;
79
+ text-decoration: none;
80
+ font-weight: 500;
81
+ }
82
+ .footer-content a:hover {
83
+ text-decoration: underline;
84
+ }
85
  '''
86
 
87
  # Gradio 인터페이스 생성
 
110
  with gr.Column():
111
  gr.HTML(
112
  """
113
+ <h1>끝장AI FLUX.1 이미지 생성기</h1>
114
  """
115
  )
116
  gr.HTML(
117
  """
118
+ <div class='footer-content'>
119
+ <p>제작: <a href='https://finalendai.com' target='_blank'>끝장AI</a></p>
120
+ <p style='margin-top: 0.5rem;'>
121
+ <a href='https://finalendai.com' target='_blank'
122
+ style='background-color: #EA580C;
123
+ color: white;
124
+ padding: 8px 16px;
125
+ border-radius: 6px;
126
+ font-weight: 500;
127
+ text-decoration: none;
128
+ display: inline-block;
129
+ transition: background-color 0.2s;'>
130
+ 끝장AI 방문하기
131
+ </a>
132
+ </p>
133
  </div>
134
  """
135
  )