Jeong-hun Kim commited on
Commit
3f3ac87
ยท
1 Parent(s): 73dadd8

fixed typo in on_submit

Browse files
Files changed (1) hide show
  1. core/launch_gradio.py +1 -1
core/launch_gradio.py CHANGED
@@ -32,7 +32,7 @@ def create_interface(ctx: ContextManager, makePipeline: MakePipeline):
32
 
33
  def on_submit(user_msg: str, ctx: ContextManager):
34
  # ์‚ฌ์šฉ์ž ๋ฉ”์„ธ์ง€ ์ถ”๊ฐ€
35
- ctx.addMessage("user", user_msg)
36
 
37
  # ์œ ์ € ๋‹ต๋ณ€์„ ํฌํ•จํ•œ HTML ๋ Œ๋”๋ง
38
  html = render_chat(ctx)
 
32
 
33
  def on_submit(user_msg: str, ctx: ContextManager):
34
  # ์‚ฌ์šฉ์ž ๋ฉ”์„ธ์ง€ ์ถ”๊ฐ€
35
+ ctx.addHistory("user", user_msg)
36
 
37
  # ์œ ์ € ๋‹ต๋ณ€์„ ํฌํ•จํ•œ HTML ๋ Œ๋”๋ง
38
  html = render_chat(ctx)