yongyeol commited on
Commit
2b108d4
Β·
verified Β·
1 Parent(s): c2bce91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -53,6 +53,7 @@ def process(image):
53
  # ─────────────────────────────────────────────────────────────
54
  # 5. Gradio μΈν„°νŽ˜μ΄μŠ€
55
  # ─────────────────────────────────────────────────────────────
 
56
  demo = gr.Interface(
57
  fn=process,
58
  inputs=gr.Image(type="pil"),
@@ -61,10 +62,13 @@ demo = gr.Interface(
61
  gr.Audio(label="μƒμ„±λœ AI μŒμ•… (MusicGen)")
62
  ],
63
  title="🎨 AI κ·Έλ¦Ό-μŒμ•… 생성기 (Inference API 버전)",
64
- description="이미지λ₯Ό μ—…λ‘œλ“œν•˜λ©΄ BLIP-baseκ°€ μ„€λͺ…을 μƒμ„±ν•˜κ³ , ν•΄λ‹Ή μ„€λͺ…μœΌλ‘œ MusicGen-small이 10초 μŒμ•…μ„ λ§Œλ“­λ‹ˆλ‹€.",
65
- concurrency_count=1, # λ©”λͺ¨λ¦¬ 보호용: λ™μ‹œ 1μš”μ²­
66
- cache_examples=False
 
 
67
  )
68
 
 
69
  if __name__ == "__main__":
70
  demo.launch()
 
53
  # ─────────────────────────────────────────────────────────────
54
  # 5. Gradio μΈν„°νŽ˜μ΄μŠ€
55
  # ─────────────────────────────────────────────────────────────
56
+ # 5. Gradio μΈν„°νŽ˜μ΄μŠ€ ──────────────────────────────────────
57
  demo = gr.Interface(
58
  fn=process,
59
  inputs=gr.Image(type="pil"),
 
62
  gr.Audio(label="μƒμ„±λœ AI μŒμ•… (MusicGen)")
63
  ],
64
  title="🎨 AI κ·Έλ¦Ό-μŒμ•… 생성기 (Inference API 버전)",
65
+ description="이미지λ₯Ό μ—…λ‘œλ“œν•˜λ©΄ BLIP-baseκ°€ μ„€λͺ…을 μƒμ„±ν•˜κ³ , "
66
+ "ν•΄λ‹Ή μ„€λͺ…μœΌλ‘œ MusicGen-small이 10초 μŒμ•…μ„ λ§Œλ“­λ‹ˆλ‹€.",
67
+ # concurrency_count=1 ← ❌ μ‚­μ œ
68
+ queue=True # (선택) λ™μ‹œ μš”μ²­μ„ νμž‰ν•˜λ €λ©΄ μ΄λ ‡κ²Œλ§Œ λ‘μ„Έμš”
69
+ # cache_examples=False # ν•„μš”ν•˜λ©΄ μœ μ§€
70
  )
71
 
72
+
73
  if __name__ == "__main__":
74
  demo.launch()