Sakalti commited on
Commit
2264268
·
verified ·
1 Parent(s): cb7950c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -38,8 +38,8 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
38
  response = get_response(message, system_message, temperature, top_p, max_tokens)
39
 
40
  # ヒストリに追加
41
- history.append({"message": message, "label": "あなた"})
42
- history.append({"message": response, "label": "チャットボット"})
43
 
44
  return history, history
45
 
@@ -57,4 +57,4 @@ demo = gr.ChatInterface(
57
  )
58
 
59
  # インターフェースの起動
60
- demo.launch()
 
38
  response = get_response(message, system_message, temperature, top_p, max_tokens)
39
 
40
  # ヒストリに追加
41
+ history.append((message, "あなた"))
42
+ history.append((response, "チャットボット"))
43
 
44
  return history, history
45
 
 
57
  )
58
 
59
  # インターフェースの起動
60
+ demo.launch(share=True)