Update app.py
Browse files
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=
|
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"- {
|
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 |
|