Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,16 +5,19 @@ questions = {}
|
|
| 5 |
recordings = {}
|
| 6 |
|
| 7 |
# ์ ์๋์ ์ง๋ฌธ ์
๋ ฅ ๋ฐ๊ธฐ
|
|
|
|
| 8 |
def submit_question(teacher_name, question):
|
| 9 |
questions[teacher_name] = question
|
| 10 |
return f"Question submitted successfully by {teacher_name}!"
|
| 11 |
|
| 12 |
# ํ์๋ค์ ์์ฑ ๋
น์ ๋ฐ ์ ์ฅ
|
|
|
|
| 13 |
def record_and_submit_voice(student_name, voice):
|
| 14 |
recordings.setdefault(student_name, []).append(voice)
|
| 15 |
return f"Voice recorded and submitted successfully by {student_name}!"
|
| 16 |
|
| 17 |
# ์ฝ๋ฉํธ ์์ฑ
|
|
|
|
| 18 |
def write_comment(student_name, teacher_name, comment):
|
| 19 |
if teacher_name in questions:
|
| 20 |
comment_list = questions.setdefault(teacher_name, [])
|
|
|
|
| 5 |
recordings = {}
|
| 6 |
|
| 7 |
# ์ ์๋์ ์ง๋ฌธ ์
๋ ฅ ๋ฐ๊ธฐ
|
| 8 |
+
@app
|
| 9 |
def submit_question(teacher_name, question):
|
| 10 |
questions[teacher_name] = question
|
| 11 |
return f"Question submitted successfully by {teacher_name}!"
|
| 12 |
|
| 13 |
# ํ์๋ค์ ์์ฑ ๋
น์ ๋ฐ ์ ์ฅ
|
| 14 |
+
@app
|
| 15 |
def record_and_submit_voice(student_name, voice):
|
| 16 |
recordings.setdefault(student_name, []).append(voice)
|
| 17 |
return f"Voice recorded and submitted successfully by {student_name}!"
|
| 18 |
|
| 19 |
# ์ฝ๋ฉํธ ์์ฑ
|
| 20 |
+
@app
|
| 21 |
def write_comment(student_name, teacher_name, comment):
|
| 22 |
if teacher_name in questions:
|
| 23 |
comment_list = questions.setdefault(teacher_name, [])
|