yash161101 commited on
Commit
329011d
·
1 Parent(s): 0df6375

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -16,7 +16,6 @@ if st.button('Submit'):
16
  tokenizer = AutoTokenizer.from_pretrained("ml6team/gpt-2-medium-conditional-quote-generator")
17
  model = AutoModelForCausalLM.from_pretrained("ml6team/gpt-2-medium-conditional-quote-generator")
18
  inputs = tokenizer.encode(input_sequence, return_tensors='pt')
19
- inputs = input.map()
20
  # generate text until the output length (which includes the context length) reaches 50
21
  #greedy_output = GPT2.generate(input_ids, max_length = MAX_LEN)
22
  outputs = model(**inputs)
 
16
  tokenizer = AutoTokenizer.from_pretrained("ml6team/gpt-2-medium-conditional-quote-generator")
17
  model = AutoModelForCausalLM.from_pretrained("ml6team/gpt-2-medium-conditional-quote-generator")
18
  inputs = tokenizer.encode(input_sequence, return_tensors='pt')
 
19
  # generate text until the output length (which includes the context length) reaches 50
20
  #greedy_output = GPT2.generate(input_ids, max_length = MAX_LEN)
21
  outputs = model(**inputs)