ColeGuion commited on
Commit
7066d45
1 Parent(s): d10fd10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def correct_text(text, max_length, min_length, max_new_tokens, num_beams, temper
31
  )
32
 
33
  corrected_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
34
- return corrected_text
35
 
36
  def respond(prompt, max_length, min_length, max_new_tokens, num_beams, temperature, top_p):
37
  # Your response generation logic here
 
31
  )
32
 
33
  corrected_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
34
+ yield corrected_text
35
 
36
  def respond(prompt, max_length, min_length, max_new_tokens, num_beams, temperature, top_p):
37
  # Your response generation logic here