Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ st.set_page_config(page_title="Speech to Text Transcription App")
|
|
| 20 |
|
| 21 |
@st.cache(show_spinner=False)
|
| 22 |
def transcribe(url, audio_b64, cutoff):
|
| 23 |
-
payload = {"url": url, "audio_b64": audio_b64, "cutoff": cutoff}
|
| 24 |
response = requests.post(
|
| 25 |
"https://aseifert--ffpub-transcription-fastapi-app.modal.run/transcribe", json=payload
|
| 26 |
)
|
|
|
|
| 20 |
|
| 21 |
@st.cache(show_spinner=False)
|
| 22 |
def transcribe(url, audio_b64, cutoff):
|
| 23 |
+
payload = {"url": url, "audio_b64": audio_b64, "cutoff": cutoff or 60_000}
|
| 24 |
response = requests.post(
|
| 25 |
"https://aseifert--ffpub-transcription-fastapi-app.modal.run/transcribe", json=payload
|
| 26 |
)
|