hugforziio commited on
Commit
a075493
1 Parent(s): 83c124a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -248,7 +248,7 @@ with gradio.Blocks(title="ChatGPT", css=css) as demo:
248
  chat_log = gradio.State()
249
  with gradio.Box():
250
  chat_log_box = gradio.Markdown(label='chat history')
251
- chat_input_role = gradio.Textbox(lines=1, label='role', value='user')
252
  chat_input = gradio.Textbox(lines=4, label='input')
253
  with gradio.Row():
254
  chat_clear_history_btn = gradio.Button("clear history")
 
248
  chat_log = gradio.State()
249
  with gradio.Box():
250
  chat_log_box = gradio.Markdown(label='chat history')
251
+ chat_input_role = gradio.Dropdown(lines=1, label='role', choices=['user', 'system', 'assistant'], value='user')
252
  chat_input = gradio.Textbox(lines=4, label='input')
253
  with gradio.Row():
254
  chat_clear_history_btn = gradio.Button("clear history")