Kirili4ik commited on
Commit
ac61535
1 Parent(s): bdfbd70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -99,7 +99,9 @@ examples = [
99
  ["Сколько тебе лет, Кирилл?", 'medium', 'Kirill', 0.85]
100
  ]
101
 
102
- iface, history = gr.Interface(chat_function,
 
 
103
  [
104
  "text",
105
  gr.Radio(["short", "medium", "long"], default='medium'),
@@ -107,7 +109,7 @@ iface, history = gr.Interface(chat_function,
107
  gr.Slider(0, 1, default=0.5),
108
  "state"
109
  ],
110
- "html",
111
  title=title, description=description, article=article, examples=examples,
112
  css= """
113
  .chatbox {display:flex;flex-direction:column}
 
99
  ["Сколько тебе лет, Кирилл?", 'medium', 'Kirill', 0.85]
100
  ]
101
 
102
+ chatbot = gr.Chatbot(color_map=("green", "gray"))
103
+
104
+ iface = gr.Interface(chat_function,
105
  [
106
  "text",
107
  gr.Radio(["short", "medium", "long"], default='medium'),
 
109
  gr.Slider(0, 1, default=0.5),
110
  "state"
111
  ],
112
+ ["html", "state"],
113
  title=title, description=description, article=article, examples=examples,
114
  css= """
115
  .chatbox {display:flex;flex-direction:column}