SpiketheCowboy commited on
Commit
3b3ed98
·
1 Parent(s): e8a3cd6

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,8 +104,8 @@ def respond(
104
  output_scores=True,
105
  max_new_tokens=max_new_tokens,
106
  )
107
- response = tokenizer.decode(generated[0][:-2]).split("### Assistant:\n", 1)[1]
108
- return output.split("### Response:")[1].strip()
109
 
110
 
111
  g = gr.Interface(
 
104
  output_scores=True,
105
  max_new_tokens=max_new_tokens,
106
  )
107
+ response = tokenizer.decode(generation_output[0][:-2]).split("### Assistant:\n", 1)[1]
108
+ return response.split("### Response:")[1].strip()
109
 
110
 
111
  g = gr.Interface(