Spaces:
Runtime error
Runtime error
jinggujiwoo7
commited on
Commit
β’
bc0da12
1
Parent(s):
db8c649
Update app.py
Browse files
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]
|