Franco Zanardi commited on
Commit
0904949
·
1 Parent(s): 073f329

adding info messages

Browse files
Files changed (2) hide show
  1. src/config.py +1 -1
  2. src/ui/step1_upload.py +18 -4
src/config.py CHANGED
@@ -7,7 +7,7 @@ os.makedirs(LOCK_DIR, exist_ok=True)
7
  MAX_VIDEO_SIZE = 50 * 1024 * 1024
8
  LOCK_TTL_SECONDS = 20 * 60
9
  SESSION_TTL_SECONDS = 60 * 60
10
- MAX_VIDEO_DURATION = 90
11
 
12
  TEMPLATES_INFO = [
13
  {"name": "classic", "ai_features": []},
 
7
  MAX_VIDEO_SIZE = 50 * 1024 * 1024
8
  LOCK_TTL_SECONDS = 20 * 60
9
  SESSION_TTL_SECONDS = 60 * 60
10
+ MAX_VIDEO_DURATION = 60
11
 
12
  TEMPLATES_INFO = [
13
  {"name": "classic", "ai_features": []},
src/ui/step1_upload.py CHANGED
@@ -52,10 +52,6 @@ def get_transcriber_instance(language_key: str):
52
  raise Exception("Unable to setup google credentials")
53
  transcriber = GoogleAudioTranscriber(language=google_lang_code)
54
  transcriber._get_client()
55
- st.warning(
56
- "**Note:** This demo uses Google's faster transcriber. For the highest accuracy "
57
- "with Whisper, please check out the [GitHub repository](https://github.com/francozanardi/pycaps)."
58
- )
59
  st.session_state.transcriber_used = "Google Speech-to-Text V1"
60
  return transcriber
61
  except Exception as e:
@@ -75,6 +71,24 @@ def render_step1():
75
  st.rerun()
76
  return
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  if 'audio_being_analyzed' not in st.session_state:
79
  st.session_state['audio_being_analyzed'] = False
80
 
 
52
  raise Exception("Unable to setup google credentials")
53
  transcriber = GoogleAudioTranscriber(language=google_lang_code)
54
  transcriber._get_client()
 
 
 
 
55
  st.session_state.transcriber_used = "Google Speech-to-Text V1"
56
  return transcriber
57
  except Exception as e:
 
71
  st.rerun()
72
  return
73
 
74
+ st.warning(
75
+ """
76
+ **Heads-up on Transcription Quality:**
77
+
78
+ To keep this online demo fast, it uses a basic real-time transcription model. The accuracy might be lower than you'd expect.
79
+ For the highest quality and powerful AI transcription, please use the main `pycaps` tool, which leverages **Whisper**. You can check it out on [GitHub](https://github.com/francozanardi/pycaps).
80
+ """
81
+ )
82
+
83
+ st.info(
84
+ """
85
+ **Note on Performance:**
86
+
87
+ This is a free, shared demo running on community hardware. If you experience slowdowns or queues, it's because others are using it too!
88
+ For a private, full-speed experience, you can **duplicate this Space for free** on your own Hugging Face account in just one click.
89
+ """
90
+ )
91
+
92
  if 'audio_being_analyzed' not in st.session_state:
93
  st.session_state['audio_being_analyzed'] = False
94