BHW commited on
Commit
b6e979d
·
verified ·
1 Parent(s): 8637508

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -7
app.py CHANGED
@@ -11,14 +11,26 @@ LABLES = ["Hi, doctor", "doctor home", "Ask doctor", "Hey, daughter", "Hi, gemte
11
  # Initialize a dictionary to store file paths by speaker_id
12
  uploaded_files = {}
13
 
14
- help_en = f"""
15
- ### Usage Instructions:
16
- 1. **Select a Label**: Choose a label from the dropdown menu, or select "Custom" to enter your own label.
17
- 2. **Enter User Name**: Input your user name, which will be used to generate a unique ID for your recordings.
18
- 3. **Record or Upload Audio**: Click the "Record Audio" button to start recording or upload an existing audio file. The maximum length for each recording or uploaded file is {MAX_LENGTH} seconds.
19
- 4. **Submit Recording**: After recording or uploading, click the "Submit" button to save the audio.
20
- 5. **Download Recordings**: Use the provided download links to retrieve all recorded files.
 
 
 
 
 
 
 
 
 
 
 
21
  """
 
22
  help_zh_tw = f"""
23
  ### 使用流程:
24
  1. **選擇標記**: 從下拉選單中選擇一個標記,或選擇“Custom”以輸入自己的標記。
 
11
  # Initialize a dictionary to store file paths by speaker_id
12
  uploaded_files = {}
13
 
14
+ help_en = """
15
+ ### Recording Requirements:
16
+
17
+ | Label | Times Required |
18
+ |----------------|----------------|
19
+ | Hi, doctor | 5 |
20
+ | doctor home | 1 |
21
+ | Ask doctor | 1 |
22
+ | Hey, daughter | 1 |
23
+ | Hi, gemtek | 1 |
24
+ | Hi, AI | 1 |
25
+
26
+ Please record or upload each of these phrases the required number of times.
27
+
28
+ 1. **Enter User Name**: Input your user name, which will be used to generate a unique ID for your recordings.
29
+ 2. **Record or Upload Audio**: Click the "Record Audio" button to start recording or upload an existing audio file. The maximum length for each recording is 1.5 seconds.
30
+ 3. **Submit Recording**: After recording or uploading, click the "Submit" button to save the audio.
31
+ 4. **Download Recordings**: Use the provided download links to retrieve all recorded files.
32
  """
33
+
34
  help_zh_tw = f"""
35
  ### 使用流程:
36
  1. **選擇標記**: 從下拉選單中選擇一個標記,或選擇“Custom”以輸入自己的標記。