gamza commited on
Commit
99d3b91
β€’
1 Parent(s): ba99c5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -10,9 +10,8 @@ import gradio as gr
10
 
11
  # model = SentenceTransformer('jhgan/ko-sroberta-multitask')
12
 
13
- def response(message, history, additional_input_info):
14
- # additional_input_info의 ν…μŠ€νŠΈλ₯Ό μ±—λ΄‡μ˜ λŒ€λ‹΅ 뒀에 μΆ”κ°€ν•©λ‹ˆλ‹€.
15
- return "챗봇을 λ―Έμ™„μ„±ν•˜μ˜€μŠ΅λ‹ˆλ‹€ " + additional_input_info
16
 
17
  gr.ChatInterface(
18
  fn=response,
@@ -23,11 +22,7 @@ gr.ChatInterface(
23
  examples=[["μ•ˆλ‡½"], ["μš”μ¦˜ λ₯λ‹€ γ… γ… "], ["점심메뉴 μΆ”μ²œλ°”λžŒ, 짜μž₯ 짬뽕 택 1"]],
24
  retry_btn="λ‹€μ‹œλ³΄λ‚΄κΈ° ↩",
25
  undo_btn="이전챗 μ‚­μ œ ❌",
26
- clear_btn="μ „μ±— μ‚­μ œ πŸ’«",
27
- additional_inputs=[
28
- gr.Textbox("!!!", label="λλ§μž‡κΈ°")
29
- ]
30
- ).launch()
31
 
32
  # gr.Interface(
33
  # fn=response,
 
10
 
11
  # model = SentenceTransformer('jhgan/ko-sroberta-multitask')
12
 
13
+ def response(message, history):
14
+ return message
 
15
 
16
  gr.ChatInterface(
17
  fn=response,
 
22
  examples=[["μ•ˆλ‡½"], ["μš”μ¦˜ λ₯λ‹€ γ… γ… "], ["점심메뉴 μΆ”μ²œλ°”λžŒ, 짜μž₯ 짬뽕 택 1"]],
23
  retry_btn="λ‹€μ‹œλ³΄λ‚΄κΈ° ↩",
24
  undo_btn="이전챗 μ‚­μ œ ❌",
25
+ clear_btn="μ „μ±— μ‚­μ œ πŸ’«").launch()
 
 
 
 
26
 
27
  # gr.Interface(
28
  # fn=response,