seawolf2357 commited on
Commit
bf5e9bc
·
verified ·
1 Parent(s): 0745d65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -136,6 +136,8 @@ with gr.Blocks(css = """#col_container {width: 1000px; margin-left: auto; margin
136
  #repetition_penalty = gr.Slider( minimum=0.1, maximum=3.0, value=1.03, step=0.01, interactive=True, label="Repetition Penalty", )
137
  chat_counter = gr.Number(value=0, visible=False, precision=0)
138
 
 
 
139
  inputs.submit( predict, [inputs, top_p, temperature, openai_api_key, chat_counter, chatbot, state], [chatbot, state, chat_counter],)
140
  b1.click( predict, [inputs, top_p, temperature, openai_api_key, chat_counter, chatbot, state], [chatbot, state, chat_counter],)
141
  b1.click(reset_textbox, [], [inputs])
 
136
  #repetition_penalty = gr.Slider( minimum=0.1, maximum=3.0, value=1.03, step=0.01, interactive=True, label="Repetition Penalty", )
137
  chat_counter = gr.Number(value=0, visible=False, precision=0)
138
 
139
+ examples = gr.Examples(examples=[["ABC"], ["BCD"]], inputs=[inputs], fn=predict, outputs=[chatbot, state, chat_counter])
140
+
141
  inputs.submit( predict, [inputs, top_p, temperature, openai_api_key, chat_counter, chatbot, state], [chatbot, state, chat_counter],)
142
  b1.click( predict, [inputs, top_p, temperature, openai_api_key, chat_counter, chatbot, state], [chatbot, state, chat_counter],)
143
  b1.click(reset_textbox, [], [inputs])