Prompthumanizer commited on
Commit
9ddc37f
ยท
verified ยท
1 Parent(s): cd07e4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -1269,11 +1269,18 @@ def create_jain_interface():
1269
  outputs=[chatbot, msg_input]
1270
  )
1271
 
1272
- example_btn.click(
1273
  fn=set_example,
1274
  outputs=msg_input,
1275
  )
1276
-
 
 
 
 
 
 
 
1277
  return interface
1278
 
1279
  # ๋ฉ”์ธ ์‹คํ–‰ ํ•จ์ˆ˜
 
1269
  outputs=[chatbot, msg_input]
1270
  )
1271
 
1272
+ example_btn.click(
1273
  fn=set_example,
1274
  outputs=msg_input,
1275
  )
1276
+
1277
+ # ์ฑ„ํŒ… ์ž…๋ ฅ ๊ธฐ๋Šฅ ์ถ”๊ฐ€
1278
+ msg_input.submit(
1279
+ fn=submit_message,
1280
+ inputs=[msg_input, chatbot],
1281
+ outputs=[chatbot, msg_input]
1282
+ )
1283
+
1284
  return interface
1285
 
1286
  # ๋ฉ”์ธ ์‹คํ–‰ ํ•จ์ˆ˜