arxivgpt kim commited on
Commit
2f7fe04
·
verified ·
1 Parent(s): 488e62c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -12
app.py CHANGED
@@ -219,17 +219,13 @@ def inference(image, face_align, background_enhance, face_upsample, upscale, cod
219
 
220
 
221
 
222
- # 인증 정보 추가
223
- auth = gr.Auth(["aiq"], ["camp"])
224
-
225
-
226
  css = """
227
- footer {
228
- visibility: hidden;
229
  }
230
  """
231
 
232
-
233
  demo = gr.Interface(
234
  fn=inference,
235
  inputs=[
@@ -244,10 +240,8 @@ demo = gr.Interface(
244
  examples=[
245
  ['01.png', True, True, True, 2, 0.7]
246
  ],
247
- css=css,
248
- auth=auth
249
  )
250
 
251
- DEBUG = os.getenv('DEBUG') == '1'
252
- demo.queue(api_open=False, concurrency_count=2, max_size=10)
253
- demo.launch(debug=DEBUG)
 
219
 
220
 
221
 
 
 
 
 
222
  css = """
223
+ footer {
224
+ display: none;
225
  }
226
  """
227
 
228
+ # Gradio 인터페이스 정의 시 CSS 추가
229
  demo = gr.Interface(
230
  fn=inference,
231
  inputs=[
 
240
  examples=[
241
  ['01.png', True, True, True, 2, 0.7]
242
  ],
243
+ css=css
 
244
  )
245
 
246
+ # 인증 정보를 변경하여 launch 메서드에서 사용
247
+ demo.launch(auth=("arxiv", "gpt"))