yoon-gu commited on
Commit
d2cf40d
ยท
1 Parent(s): d9dc886

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,7 +51,7 @@ with gr.Blocks() as demo:
51
  answer = gr.State(value="")
52
  with gr.Row():
53
  with gr.Column():
54
- markdown = gr.Markdown(MD.format(content='\n'.join([f"- {u}({info[u]['score']}์ )" for u in USERS])))
55
  user = gr.Radio(USERS, value="Dummy", label="์‚ฌ์šฉ์ž", info="๋‹น์‹ ์€ ๋ˆ„๊ตฌ์‹ ๊ฐ€์š”?")
56
  quiz_count = gr.Radio([10, 20, 30], value=10, label="์ด ํ€ด์ฆˆ ๊ฐœ์ˆ˜", info="ํ€ด์ฆˆ๋ฅผ ๋ช‡ ๊ฐœ ํ’€ ์˜ˆ์ •์ธ๊ฐ€์š”?")
57
  with gr.Column():
@@ -97,7 +97,7 @@ with gr.Blocks() as demo:
97
 
98
  chat_history.append((message, bot_message))
99
  print(info)
100
- return "", chat_history, MD.format(content='\n'.join([f"- {u}({info[u]['score']}์ )" for u in USERS]))
101
 
102
  msg.submit(respond, [user, quiz_count, generation, poke_types, msg, chatbot], [msg, chatbot, markdown])
103
 
 
51
  answer = gr.State(value="")
52
  with gr.Row():
53
  with gr.Column():
54
+ markdown = gr.Markdown(MD.format(content="")))
55
  user = gr.Radio(USERS, value="Dummy", label="์‚ฌ์šฉ์ž", info="๋‹น์‹ ์€ ๋ˆ„๊ตฌ์‹ ๊ฐ€์š”?")
56
  quiz_count = gr.Radio([10, 20, 30], value=10, label="์ด ํ€ด์ฆˆ ๊ฐœ์ˆ˜", info="ํ€ด์ฆˆ๋ฅผ ๋ช‡ ๊ฐœ ํ’€ ์˜ˆ์ •์ธ๊ฐ€์š”?")
57
  with gr.Column():
 
97
 
98
  chat_history.append((message, bot_message))
99
  print(info)
100
+ return "", chat_history, MD.format(content='\n'.join([f"- {user}({info[user]['score']}์ )"]))
101
 
102
  msg.submit(respond, [user, quiz_count, generation, poke_types, msg, chatbot], [msg, chatbot, markdown])
103