Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
3a81ef8
1
Parent(s):
ffcc166
main.py
CHANGED
@@ -136,7 +136,10 @@ def prepare_model_inputs(
|
|
136 |
}
|
137 |
for key in keys_down:
|
138 |
key = key.lower()
|
139 |
-
|
|
|
|
|
|
|
140 |
|
141 |
if hidden_states is not None:
|
142 |
inputs['hidden_states'] = hidden_states
|
|
|
136 |
}
|
137 |
for key in keys_down:
|
138 |
key = key.lower()
|
139 |
+
if key in stoi:
|
140 |
+
inputs['key_events'][stoi[key]] = 1
|
141 |
+
else:
|
142 |
+
print (f'Key {key} not found in stoi')
|
143 |
|
144 |
if hidden_states is not None:
|
145 |
inputs['hidden_states'] = hidden_states
|