Cartof commited on
Commit
9c48d12
1 Parent(s): 993e9a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -99,8 +99,8 @@ Will not describe your needs to ChatGPT?You Use [ChatGPT Shortcut](https://new
99
 
100
  with gr.Blocks() as demo:
101
  gr.HTML(title)
102
- chatbot = gr.Chatbot().style(color_map=("#1D51EE", "#585A5B"))
103
- chatbot2 = gr.Chatbot().style(color_map=("#A238FF", "#A238FF"))
104
  context = gr.State([])
105
  systemPrompt = gr.State(update_system(initial_prompt))
106
 
@@ -121,7 +121,7 @@ with gr.Blocks() as demo:
121
 
122
  #gr.Markdown(description)
123
 
124
- txt.submit(predict, [chatbot2, txt, systemPrompt, context], [chatbot2, context], show_progress=True)
125
  txt.submit(lambda :"", None, txt)
126
  submitBtn.click(predict, [chatbot, txt, systemPrompt, context], [chatbot, context], show_progress=True)
127
  submitBtn.click(lambda :"", None, txt)
 
99
 
100
  with gr.Blocks() as demo:
101
  gr.HTML(title)
102
+ chatbot2 = gr.Chatbot().style(color_map=("#1D51EE", "#585A5B"))
103
+ chatbot = gr.Chatbot().style(color_map=("#A238FF", "#A238FF"))
104
  context = gr.State([])
105
  systemPrompt = gr.State(update_system(initial_prompt))
106
 
 
121
 
122
  #gr.Markdown(description)
123
 
124
+ txt.submit(predict, [chatbot, txt, systemPrompt, context], [chatbot, context], show_progress=True)
125
  txt.submit(lambda :"", None, txt)
126
  submitBtn.click(predict, [chatbot, txt, systemPrompt, context], [chatbot, context], show_progress=True)
127
  submitBtn.click(lambda :"", None, txt)