Update app.py
Browse files
app.py
CHANGED
@@ -59,10 +59,10 @@ footer {
|
|
59 |
}
|
60 |
"""
|
61 |
|
62 |
-
|
63 |
fn=transcribe_summarize_and_blog,
|
64 |
inputs=[
|
65 |
-
gr.Audio(sources="
|
66 |
gr.Radio(["transcribe", "translate"], label="์์
", value="transcribe"),
|
67 |
],
|
68 |
outputs=["text", "text", "text"], # ๋ณํ๋ ํ
์คํธ, ์์ฝ, ๋ธ๋ก๊ทธ ๊ธ ์ถ๋ ฅ
|
@@ -70,10 +70,10 @@ mf_transcribe = gr.Interface(css=css,
|
|
70 |
flagging_mode="never",
|
71 |
)
|
72 |
|
73 |
-
|
74 |
fn=transcribe_summarize_and_blog,
|
75 |
inputs=[
|
76 |
-
gr.Audio(sources="
|
77 |
gr.Radio(["transcribe", "translate"], label="์์
", value="transcribe"),
|
78 |
],
|
79 |
outputs=["text", "text", "text"], # ๋ณํ๋ ํ
์คํธ, ์์ฝ, ๋ธ๋ก๊ทธ ๊ธ ์ถ๋ ฅ
|
@@ -81,6 +81,8 @@ file_transcribe = gr.Interface(
|
|
81 |
flagging_mode="never",
|
82 |
)
|
83 |
|
|
|
|
|
84 |
# demo ๋ณ์๋ฅผ Gradio Blocks ์ปจํ
์ด๋๋ก ์ ์
|
85 |
demo = gr.Blocks(theme="Nymbo/Nymbo_Theme")
|
86 |
|
|
|
59 |
}
|
60 |
"""
|
61 |
|
62 |
+
file_transcribe = gr.Interface(
|
63 |
fn=transcribe_summarize_and_blog,
|
64 |
inputs=[
|
65 |
+
gr.Audio(sources="upload", type="filepath", label="์ค๋์ค ํ์ผ"),
|
66 |
gr.Radio(["transcribe", "translate"], label="์์
", value="transcribe"),
|
67 |
],
|
68 |
outputs=["text", "text", "text"], # ๋ณํ๋ ํ
์คํธ, ์์ฝ, ๋ธ๋ก๊ทธ ๊ธ ์ถ๋ ฅ
|
|
|
70 |
flagging_mode="never",
|
71 |
)
|
72 |
|
73 |
+
mf_transcribe = gr.Interface(css=css,
|
74 |
fn=transcribe_summarize_and_blog,
|
75 |
inputs=[
|
76 |
+
gr.Audio(sources="microphone", type="filepath"),
|
77 |
gr.Radio(["transcribe", "translate"], label="์์
", value="transcribe"),
|
78 |
],
|
79 |
outputs=["text", "text", "text"], # ๋ณํ๋ ํ
์คํธ, ์์ฝ, ๋ธ๋ก๊ทธ ๊ธ ์ถ๋ ฅ
|
|
|
81 |
flagging_mode="never",
|
82 |
)
|
83 |
|
84 |
+
|
85 |
+
|
86 |
# demo ๋ณ์๋ฅผ Gradio Blocks ์ปจํ
์ด๋๋ก ์ ์
|
87 |
demo = gr.Blocks(theme="Nymbo/Nymbo_Theme")
|
88 |
|