Gyr0MAN commited on
Commit
8c1406b
·
verified ·
1 Parent(s): 717e278

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -27,6 +27,7 @@ def generate_text(inp, history):
27
  beam_output = model.generate(**input_ids, generation_config=generation_config)
28
  output = tokenizer.decode(beam_output[0], skip_special_token=True)
29
  output = output.replace(inp,"")
 
30
  return output
31
 
32
  gr.ChatInterface(generate_text).launch()
 
27
  beam_output = model.generate(**input_ids, generation_config=generation_config)
28
  output = tokenizer.decode(beam_output[0], skip_special_token=True)
29
  output = output.replace(inp,"")
30
+ print(output)
31
  return output
32
 
33
  gr.ChatInterface(generate_text).launch()