Spaces:
Runtime error
Runtime error
Commit ·
53e961e
1
Parent(s): bbbbf7d
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,6 +108,7 @@ def decode_sequence(input_seq):
|
|
| 108 |
def predict(s):
|
| 109 |
pattern = r'[^a-zA-Z\s]'
|
| 110 |
text_input = re.sub(pattern, '', s)
|
|
|
|
| 111 |
s = text_input.split()
|
| 112 |
encoder_input_data = np.zeros(
|
| 113 |
(len(s), max_encoder_seq_length, num_encoder_tokens), dtype="float32"
|
|
|
|
| 108 |
def predict(s):
|
| 109 |
pattern = r'[^a-zA-Z\s]'
|
| 110 |
text_input = re.sub(pattern, '', s)
|
| 111 |
+
text_input=text_input.lower()
|
| 112 |
s = text_input.split()
|
| 113 |
encoder_input_data = np.zeros(
|
| 114 |
(len(s), max_encoder_seq_length, num_encoder_tokens), dtype="float32"
|