jaekookang commited on
Commit
ec64b87
1 Parent(s): 4a60569

update reference

Browse files
Files changed (1) hide show
  1. gradio_imagecompletion.py +3 -8
gradio_imagecompletion.py CHANGED
@@ -23,8 +23,6 @@ from transformers import ImageGPTFeatureExtractor, ImageGPTForCausalImageModelin
23
  # ========== Settings ==========
24
  EXAMPLE_DIR = 'examples'
25
  examples = sorted(glob(os.path.join(EXAMPLE_DIR, '*.jpg')))
26
- JKANG = os.getenv('JKANG')
27
- NAMZ = os.getenv('NAMZ')
28
 
29
  # ========== Logger ==========
30
  logger.add('app.log', mode='a')
@@ -90,11 +88,8 @@ iface = gr.Interface(
90
  inputs=gr.inputs.Image(type="pil", label='인풋 이미지'),
91
  outputs=gr.outputs.Image(type="pil", label='AI가 그린 결과'),
92
  examples=examples,
93
- # enable_queue=True,
94
- article='<p style="text-align:center">i-Scream AI</p>',
95
  )
96
  if __name__ == '__main__':
97
- iface.launch(debug=True, auth=[
98
- ('jkang', JKANG),
99
- ('NAMZ', NAMZ)
100
- ])
 
23
  # ========== Settings ==========
24
  EXAMPLE_DIR = 'examples'
25
  examples = sorted(glob(os.path.join(EXAMPLE_DIR, '*.jpg')))
 
 
26
 
27
  # ========== Logger ==========
28
  logger.add('app.log', mode='a')
 
88
  inputs=gr.inputs.Image(type="pil", label='인풋 이미지'),
89
  outputs=gr.outputs.Image(type="pil", label='AI가 그린 결과'),
90
  examples=examples,
91
+ enable_queue=True,
92
+ article='<p style="text-align:center">https://huggingface.co/spaces/nielsr/imagegpt-completion</p>',
93
  )
94
  if __name__ == '__main__':
95
+ iface.launch(debug=True)