Sultannn commited on
Commit
240564d
1 Parent(s): 06df438

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def run_model(input_text, max_length):
17
 
18
  # preprocessing text input
19
  input_text = str(input_text)
20
- input_text = ' '.join(input_text.split()).upper() # hapus white space dan ubah judul kata ke huruf besar
21
 
22
  #encode input to vector
23
  text_prompt = token_gpt2.encode(input_text,add_special_tokens=True, return_tensors="tf")
 
17
 
18
  # preprocessing text input
19
  input_text = str(input_text)
20
+ input_text = ' '.join(input_text.split()).upper() + '\n' # hapus white space dan ubah judul kata ke huruf besar
21
 
22
  #encode input to vector
23
  text_prompt = token_gpt2.encode(input_text,add_special_tokens=True, return_tensors="tf")