Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
e24540a
1
Parent(s):
51b2c20
main.py
CHANGED
|
@@ -113,9 +113,11 @@ def prepare_model_inputs(
|
|
| 113 |
|
| 114 |
if hidden_states is not None:
|
| 115 |
inputs['hidden_states'] = hidden_states
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
|
|
|
|
|
|
| 119 |
return inputs
|
| 120 |
|
| 121 |
@torch.no_grad()
|
|
|
|
| 113 |
|
| 114 |
if hidden_states is not None:
|
| 115 |
inputs['hidden_states'] = hidden_states
|
| 116 |
+
DEBUG_MODE = True
|
| 117 |
+
if DEBUG_MODE:
|
| 118 |
+
print ('DEBUG MODE, REMOVING INPUTS')
|
| 119 |
+
if 'hidden_states' in inputs:
|
| 120 |
+
del inputs['hidden_states']
|
| 121 |
return inputs
|
| 122 |
|
| 123 |
@torch.no_grad()
|