Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def describe_and_speak(img: Image.Image):
|
|
74 |
# βββββββββββββββ 5. Gradio μΈν°νμ΄μ€ βββββββββββββββ
|
75 |
demo = gr.Interface(
|
76 |
fn=describe_and_speak,
|
77 |
-
inputs=gr.Image(type="pil", sources=["upload", "
|
78 |
outputs=[
|
79 |
gr.Textbox(label="νκΈ μΊ‘μ
"),
|
80 |
gr.Audio(label="μμ± μ¬μ", type="numpy")
|
|
|
74 |
# βββββββββββββββ 5. Gradio μΈν°νμ΄μ€ βββββββββββββββ
|
75 |
demo = gr.Interface(
|
76 |
fn=describe_and_speak,
|
77 |
+
inputs=gr.Image(type="pil", sources=["upload", "webcam"], label="μ
λ ₯ μ΄λ―Έμ§"),
|
78 |
outputs=[
|
79 |
gr.Textbox(label="νκΈ μΊ‘μ
"),
|
80 |
gr.Audio(label="μμ± μ¬μ", type="numpy")
|