Cartof commited on
Commit
c0ea851
1 Parent(s): f91af7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -102,7 +102,6 @@ with gr.Blocks() as demo:
102
  chatbot = gr.Chatbot().style(color_map=("#1D51EE", "#585A5B"))
103
  context = gr.State([])
104
  systemPrompt = gr.State(update_system(initial_prompt))
105
- show_api=False
106
 
107
  with gr.Row():
108
  with gr.Column(scale=12):
@@ -115,8 +114,8 @@ with gr.Blocks() as demo:
115
  delLastBtn = gr.Button("🗑️ Delete conversation")
116
  reduceTokenBtn = gr.Button("♻️ Optimize Tokens")
117
 
118
- newSystemPrompt = gr.Textbox(show_label=False, placeholder=f"Setting System Prompt...", label="Change System prompt").style(container=True)
119
- systemPromptDisplay = gr.Textbox(show_label=False, value=initial_prompt, interactive=False, label="Current System prompt").style(container=True)
120
 
121
  gr.Markdown(description)
122
 
@@ -131,6 +130,7 @@ with gr.Blocks() as demo:
131
  retryBtn.click(retry, [chatbot, systemPrompt, context], [chatbot, context], show_progress=True)
132
  delLastBtn.click(delete_last_conversation, [chatbot, context], [chatbot, context], show_progress=True)
133
  reduceTokenBtn.click(reduce_token, [chatbot, systemPrompt, context], [chatbot, context], show_progress=True)
 
134
 
135
 
136
  demo.launch()
 
102
  chatbot = gr.Chatbot().style(color_map=("#1D51EE", "#585A5B"))
103
  context = gr.State([])
104
  systemPrompt = gr.State(update_system(initial_prompt))
 
105
 
106
  with gr.Row():
107
  with gr.Column(scale=12):
 
114
  delLastBtn = gr.Button("🗑️ Delete conversation")
115
  reduceTokenBtn = gr.Button("♻️ Optimize Tokens")
116
 
117
+ newSystemPrompt = gr.Textbox(show_label=True, placeholder=f"Setting System Prompt...", label="Change System prompt").style(container=True)
118
+ systemPromptDisplay = gr.Textbox(show_label=True, value=initial_prompt, interactive=False, label="Current System prompt").style(container=True)
119
 
120
  gr.Markdown(description)
121
 
 
130
  retryBtn.click(retry, [chatbot, systemPrompt, context], [chatbot, context], show_progress=True)
131
  delLastBtn.click(delete_last_conversation, [chatbot, context], [chatbot, context], show_progress=True)
132
  reduceTokenBtn.click(reduce_token, [chatbot, systemPrompt, context], [chatbot, context], show_progress=True)
133
+ show_api=False
134
 
135
 
136
  demo.launch()