jinggujiwoo7 commited on
Commit
bc0da12
β€’
1 Parent(s): db8c649

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -4,11 +4,13 @@ import gradio as gr
4
  recordings = {}
5
 
6
  # ν•™μƒλ“€μ˜ μŒμ„± λ…ΉμŒ 및 μ €μž₯
 
7
  def record_and_submit_voice(student_name, voice):
8
  recordings.setdefault(student_name, []).append(voice)
9
  return f"Voice recorded and submitted successfully by {student_name}!"
10
 
11
  # μ½”λ©˜νŠΈ μž‘μ„±
 
12
  def write_comment(student_name, selected_student_name, comment):
13
  if selected_student_name in recordings:
14
  comment_list = recordings[selected_student_name]
 
4
  recordings = {}
5
 
6
  # ν•™μƒλ“€μ˜ μŒμ„± λ…ΉμŒ 및 μ €μž₯
7
+ @app
8
  def record_and_submit_voice(student_name, voice):
9
  recordings.setdefault(student_name, []).append(voice)
10
  return f"Voice recorded and submitted successfully by {student_name}!"
11
 
12
  # μ½”λ©˜νŠΈ μž‘μ„±
13
+ @app
14
  def write_comment(student_name, selected_student_name, comment):
15
  if selected_student_name in recordings:
16
  comment_list = recordings[selected_student_name]