jinggujiwoo7 commited on
Commit
67cc8de
ยท
verified ยท
1 Parent(s): 2457131

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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, [])