bleysg commited on
Commit
291865e
Β·
1 Parent(s): d57fcb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -74,7 +74,7 @@ with gr.Blocks(css=CSS) as demo:
74
  ## This demo is an unquantized GPU chatbot of [OpenOrcaxOpenChat-Preview2-13B](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B)
75
  Brought to you by your friends at Alignment Lab AI, OpenChat, and Open Access AI Collective!
76
  """)
77
- with gr.Tab("Chatbot"):
78
  gr.Markdown("# πŸ‹ OpenOrca x OpenChat - Preview2 - 13B Playground Space! πŸ‹")
79
  #chatbot = gr.Chatbot().style(height=500)
80
  chatbot = gr.Chatbot(elem_id="chatbot")
@@ -88,7 +88,7 @@ with gr.Blocks(css=CSS) as demo:
88
  submit = gr.Button(value="Send message", variant="secondary").style(full_width=True)
89
  clear = gr.Button(value="New topic", variant="secondary").style(full_width=False)
90
  stop = gr.Button(value="Stop", variant="secondary").style(full_width=False)
91
- with gr.Accordion("Show Model Parameters", open=False, info="Click to show adjustable parameters like Temperature"):
92
  with gr.Row():
93
  with gr.Column():
94
  max_tokens = gr.Slider(20, 1000, label="Max Tokens", step=20, value=500)
@@ -99,11 +99,11 @@ with gr.Blocks(css=CSS) as demo:
99
 
100
  system_msg = gr.Textbox(
101
  start_message, label="System Message", interactive=True, visible=True, placeholder="System prompt. Provide instructions which you want the model to remember.", lines=5)
102
-
103
  chat_history_state = gr.State()
104
  clear.click(clear_chat, inputs=[chat_history_state, message], outputs=[chat_history_state, message], queue=False)
105
  clear.click(lambda: None, None, chatbot, queue=False)
106
-
107
  submit_click_event = submit.click(
108
  fn=user, inputs=[message, chat_history_state], outputs=[message, chat_history_state], queue=True
109
  ).then(
 
74
  ## This demo is an unquantized GPU chatbot of [OpenOrcaxOpenChat-Preview2-13B](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B)
75
  Brought to you by your friends at Alignment Lab AI, OpenChat, and Open Access AI Collective!
76
  """)
77
+ with gr.Row():
78
  gr.Markdown("# πŸ‹ OpenOrca x OpenChat - Preview2 - 13B Playground Space! πŸ‹")
79
  #chatbot = gr.Chatbot().style(height=500)
80
  chatbot = gr.Chatbot(elem_id="chatbot")
 
88
  submit = gr.Button(value="Send message", variant="secondary").style(full_width=True)
89
  clear = gr.Button(value="New topic", variant="secondary").style(full_width=False)
90
  stop = gr.Button(value="Stop", variant="secondary").style(full_width=False)
91
+ with gr.Accordion("Show Model Parameters", open=False):
92
  with gr.Row():
93
  with gr.Column():
94
  max_tokens = gr.Slider(20, 1000, label="Max Tokens", step=20, value=500)
 
99
 
100
  system_msg = gr.Textbox(
101
  start_message, label="System Message", interactive=True, visible=True, placeholder="System prompt. Provide instructions which you want the model to remember.", lines=5)
102
+
103
  chat_history_state = gr.State()
104
  clear.click(clear_chat, inputs=[chat_history_state, message], outputs=[chat_history_state, message], queue=False)
105
  clear.click(lambda: None, None, chatbot, queue=False)
106
+
107
  submit_click_event = submit.click(
108
  fn=user, inputs=[message, chat_history_state], outputs=[message, chat_history_state], queue=True
109
  ).then(