sanchit-gandhi HF staff commited on
Commit
936805b
1 Parent(s): 81b3a7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -44,7 +44,7 @@ If you experience any issues with using this checker, [open an issue](https://hu
44
  on this Space and tag [`@sanchit-gandhi`](https://huggingface.co/sanchit-gandhi).
45
  """
46
  THRESHOLD = 0.5
47
- PASS_MESSAGE = "Congratulations! Your demo passed the assessment!"
48
 
49
 
50
  def verify_demo(repo_id):
@@ -96,7 +96,9 @@ def verify_demo(repo_id):
96
  all_results.to_csv(CSV_RESULTS_FILE, index=False)
97
  usernames_repo.push_to_hub()
98
 
99
- return PASS_MESSAGE, (sampling_rate, audio), label_outputs
 
 
100
 
101
 
102
  demo = gr.Interface(
 
44
  on this Space and tag [`@sanchit-gandhi`](https://huggingface.co/sanchit-gandhi).
45
  """
46
  THRESHOLD = 0.5
47
+ PASS_MESSAGE = "Congratulations USER! Your demo passed the assessment!"
48
 
49
 
50
  def verify_demo(repo_id):
 
96
  all_results.to_csv(CSV_RESULTS_FILE, index=False)
97
  usernames_repo.push_to_hub()
98
 
99
+ message = PASS_MESSAGE.replace("USER", user_name)
100
+
101
+ return message, (sampling_rate, audio), label_outputs
102
 
103
 
104
  demo = gr.Interface(