Spaces:
Runtime error
Runtime error
Alexander Seifert
commited on
Commit
·
5d9101b
1
Parent(s):
a9bf4b2
run
Browse files
app.py
CHANGED
@@ -1,14 +1,10 @@
|
|
1 |
import base64
|
2 |
-
import json
|
3 |
-
import os
|
4 |
|
5 |
import modal
|
6 |
-
import requests
|
7 |
import streamlit as st
|
8 |
from loguru import logger
|
9 |
from pydub import AudioSegment
|
10 |
|
11 |
-
# password = os.environ["PASSWORD"]
|
12 |
run_transcription = modal.lookup("ffpub-transcription", "run_transcription")
|
13 |
|
14 |
st.set_page_config(page_title="Speech to Text Transcription App")
|
@@ -49,11 +45,10 @@ def run():
|
|
49 |
st.json(transcription)
|
50 |
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
)
|
|
|
1 |
import base64
|
|
|
|
|
2 |
|
3 |
import modal
|
|
|
4 |
import streamlit as st
|
5 |
from loguru import logger
|
6 |
from pydub import AudioSegment
|
7 |
|
|
|
8 |
run_transcription = modal.lookup("ffpub-transcription", "run_transcription")
|
9 |
|
10 |
st.set_page_config(page_title="Speech to Text Transcription App")
|
|
|
45 |
st.json(transcription)
|
46 |
|
47 |
|
48 |
+
try:
|
49 |
+
run()
|
50 |
+
except Exception as e:
|
51 |
+
logger.error(e)
|
52 |
+
st.error(
|
53 |
+
"Leider ist ein unerwarter Fehler aufgetreten. Ich könnte mir das Problem sofort ansehen, Sie erreichen mich unter [email protected]"
|
54 |
+
)
|
|