Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
103 |
-
|
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, [
|
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)
|