JBHF commited on
Commit
0a7957b
1 Parent(s): e45fc13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -2
app.py CHANGED
@@ -395,8 +395,21 @@ st.write("Dit deel van het totale proces heet \"TRANSCRIBEREN\": het omzetten va
395
 
396
  st.title("Audio Recorder")
397
  # audiorecorder(start_prompt="Start recording", stop_prompt="Stop recording", pause_prompt="", key=None):
398
- audio = audiorecorder("Click to record", "Click to stop recording", "Click to pause recording")
399
-
 
 
 
 
 
 
 
 
 
 
 
 
 
400
 
401
  # JB:
402
  # https://docs.streamlit.io/develop/concepts/architecture/caching
 
395
 
396
  st.title("Audio Recorder")
397
  # audiorecorder(start_prompt="Start recording", stop_prompt="Stop recording", pause_prompt="", key=None):
398
+ # audio = audiorecorder("Click to record", "Click to stop recording", "Click to pause recording") # ORIGINAL
399
+ audio = audiorecorder("Click to record", "Click to stop recording", "Click to pause recording", key="audiorec2")
400
+ # Audio Recorder
401
+ # DuplicateWidgetID: There are multiple identical st.audiorecorder.audiorecorder widgets with the same generated key.
402
+ # When a widget is created, it's assigned an internal key based on its structure.
403
+ # Multiple widgets with an identical structure will result in the same internal key, which causes this error.
404
+ # To fix this error, please pass a unique key argument to st.audiorecorder.audiorecorder.
405
+ #
406
+ # Traceback:
407
+ # File "/home/user/app/app.py", line 398, in <module>
408
+ # audio = audiorecorder("Click to record", "Click to stop recording", "Click to pause recording")
409
+ # File "/usr/local/lib/python3.10/site-packages/audiorecorder/__init__.py", line 23, in audiorecorder
410
+ # base64_audio = _component_func(start_prompt=start_prompt, stop_prompt=stop_prompt, pause_prompt=pause_prompt, key=key, default=b"")
411
+ #
412
+ # ToDo: OPLOSSEN MET UNIEKE KEY !
413
 
414
  # JB:
415
  # https://docs.streamlit.io/develop/concepts/architecture/caching