bryanmildort commited on
Commit
09b2153
·
1 Parent(s): 171b76a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import streamlit as st
3
  def summarize_function(notes):
4
  notes_input = tokenizer(notes, return_tensors='pt')
5
  output = model(**notes_input)
6
- max_length = len(output['logits'][0]) + 35
7
  # max_length = len(notes.split(' ')) + 40
8
  input_ids = notes_input.input_ids
9
  gen_tokens = model.generate(input_ids, do_sample=True, temperature = 0.5, max_length=max_length)
 
3
  def summarize_function(notes):
4
  notes_input = tokenizer(notes, return_tensors='pt')
5
  output = model(**notes_input)
6
+ max_length = len(output['logits'][0]) + 40
7
  # max_length = len(notes.split(' ')) + 40
8
  input_ids = notes_input.input_ids
9
  gen_tokens = model.generate(input_ids, do_sample=True, temperature = 0.5, max_length=max_length)