faisalhr1997 commited on
Commit
c57b026
1 Parent(s): 3a09844

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -3
app.py CHANGED
@@ -83,9 +83,9 @@ def chat():
83
  with gr.Column():
84
  retry_button = gr.Button("♻️ Retry")
85
  with gr.Column():
86
- delete_turn_button = gr.Button("🧽 Delete last turn")
87
  with gr.Column():
88
- clear_chat_button = gr.Button(" Delete all history")
89
 
90
  gr.Examples(
91
  [
@@ -114,6 +114,26 @@ def chat():
114
  max_lines=16,
115
  show_label=False,
116
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
 
118
  def run_chat(
119
  message: str, chat_history, instructions: str, temperature: float, top_p: float
@@ -203,7 +223,7 @@ def get_demo():
203
  with gr.Row():
204
  with gr.Column():
205
  gr.Markdown(
206
- """**Chat with [TheBloke/Luna-AI-Llama2-Uncensored-GGML](https://huggingface.co/TheBloke/Luna-AI-Llama2-Uncensored-GGML), brainstorm ideas, discuss your holiday plans, and more!**
207
  """
208
  )
209
 
 
83
  with gr.Column():
84
  retry_button = gr.Button("♻️ Retry")
85
  with gr.Column():
86
+ delete_turn_button = gr.Button(" Delete last turn")
87
  with gr.Column():
88
+ clear_chat_button = gr.Button("🧽 Clear History")
89
 
90
  gr.Examples(
91
  [
 
114
  max_lines=16,
115
  show_label=False,
116
  )
117
+ with gr.Accordion("Role #1", open=False):
118
+ instructions = gr.Textbox(
119
+ placeholder="Role #1 like ### Instruction",
120
+ value=USER_NAME,
121
+ lines=1,
122
+ interactive=True,
123
+ label="Role #1",
124
+ max_lines=1,
125
+ show_label=False,
126
+ )
127
+ with gr.Accordion("Role #2", open=False):
128
+ instructions = gr.Textbox(
129
+ placeholder="Role #2 like ### Response",
130
+ value=BOT_NAME,
131
+ lines=1,
132
+ interactive=True,
133
+ label="Role #2",
134
+ max_lines=1,
135
+ show_label=False,
136
+ )
137
 
138
  def run_chat(
139
  message: str, chat_history, instructions: str, temperature: float, top_p: float
 
223
  with gr.Row():
224
  with gr.Column():
225
  gr.Markdown(
226
+ """**Chat, brainstorm ideas, discuss your holiday plans, and more!**
227
  """
228
  )
229