Spaces:
Sleeping
Sleeping
Rename app_8.py to app_9.py
Browse files- app_8.py → app_9.py +1 -1
app_8.py → app_9.py
RENAMED
@@ -131,7 +131,7 @@ def extract_arguments(text, tokenizer, model, beam_search=True):
|
|
131 |
end_signal_logits[start_signal + 5:] = -1e4
|
132 |
end_signal = end_signal_logits.argmax().item()
|
133 |
|
134 |
-
|
135 |
start_signal, end_signal = None, None
|
136 |
|
137 |
|
|
|
131 |
end_signal_logits[start_signal + 5:] = -1e4
|
132 |
end_signal = end_signal_logits.argmax().item()
|
133 |
|
134 |
+
if not has_signal:
|
135 |
start_signal, end_signal = None, None
|
136 |
|
137 |
|