yasserrmd commited on
Commit
8dc1b2f
1 Parent(s): f010434

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -38,6 +38,7 @@ def generate_text(prompt, max_length, temperature, category):
38
  do_sample=True
39
  )
40
  generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
 
41
  print(generated_text)
42
  return generated_text
43
 
 
38
  do_sample=True
39
  )
40
  generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
41
+ generated_text = generated_text.replace(category_prompt, "")
42
  print(generated_text)
43
  return generated_text
44