Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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")
|