Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yonishelach committed Jun 7, 2023
1 parent b4404e4 commit 7de53ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,9 @@
" repetition_penalty = gr.Slider(minimum=0, maximum=1, value=1, label=\"repetition penalty\", info=\"Choose between 0 and 1\")\n",
" clear = gr.Button(\"Clear\")\n",
"\n",
" def respond(message, chat_history, temperature, max_length, top_p, top_k, repetition_penalty):\n",
" def respond(prompt, chat_history, temperature, max_length, top_p, top_k, repetition_penalty):\n",
" bot_message = generate(prompt, temperature, max_length, top_p, top_k, repetition_penalty)\n",
" chat_history.append((message, bot_message))\n",
" chat_history.append((prompt, bot_message))\n",
"\n",
" return \"\", chat_history\n",
"\n",
Expand Down

0 comments on commit 7de53ef

Please sign in to comment.