burman-ai commited on
Commit
b008d5e
·
verified ·
1 Parent(s): 95e81f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -83,7 +83,7 @@ def respond(
83
  chatbot = gr.Chatbot(height=600, show_copy_button=True, placeholder="ChatGPT is initializing...", likeable=True, layout="panel")
84
  print("Chatbot interface created.")
85
 
86
- system_message_box = gr.Textbox(value="", placeholder="You are a helpful assistant.", label="System Prompt")
87
 
88
  max_tokens_slider = gr.Slider(
89
  minimum=1024,
@@ -140,13 +140,14 @@ def set_custom_model_from_radio(selected):
140
  demo = gr.ChatInterface(
141
  fn=respond,
142
  additional_inputs=[
 
143
  system_message_box,
144
  max_tokens_slider,
145
  temperature_slider,
146
  top_p_slider,
147
  frequency_penalty_slider,
148
  seed_slider,
149
- custom_model_box,
150
  ],
151
  fill_height=True,
152
  chatbot=chatbot,
 
83
  chatbot = gr.Chatbot(height=600, show_copy_button=True, placeholder="ChatGPT is initializing...", likeable=True, layout="panel")
84
  print("Chatbot interface created.")
85
 
86
+ system_message_box = gr.Textbox(value="", placeholder="You are a helpful AI Assistant.", label="System Prompt")
87
 
88
  max_tokens_slider = gr.Slider(
89
  minimum=1024,
 
140
  demo = gr.ChatInterface(
141
  fn=respond,
142
  additional_inputs=[
143
+ custom_model_box,
144
  system_message_box,
145
  max_tokens_slider,
146
  temperature_slider,
147
  top_p_slider,
148
  frequency_penalty_slider,
149
  seed_slider,
150
+
151
  ],
152
  fill_height=True,
153
  chatbot=chatbot,