Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from datetime import datetime
|
|
9 |
summarizer = pipeline("summarization", model="t5-small")
|
10 |
|
11 |
# μμ± νμΌμ λ°μ ν
μ€νΈ λ³ν β μμ½ β νμλ‘ μμ±
|
12 |
-
def
|
13 |
recognizer = sr.Recognizer()
|
14 |
with sr.AudioFile(audio) as source:
|
15 |
audio_data = recognizer.record(source)
|
|
|
9 |
summarizer = pipeline("summarization", model="t5-small")
|
10 |
|
11 |
# μμ± νμΌμ λ°μ ν
μ€νΈ λ³ν β μμ½ β νμλ‘ μμ±
|
12 |
+
def transcribe_m4a(audio_path) and_summarize(audio):
|
13 |
recognizer = sr.Recognizer()
|
14 |
with sr.AudioFile(audio) as source:
|
15 |
audio_data = recognizer.record(source)
|