Spaces:
Sleeping
Sleeping
fixing bug
Browse files
app.py
CHANGED
|
@@ -88,9 +88,13 @@ with col1:
|
|
| 88 |
if input_count > 0:
|
| 89 |
# Override input() to return provided values in order
|
| 90 |
stub = (
|
| 91 |
-
|
| 92 |
"
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
"
|
| 95 |
"builtins.input = lambda prompt='': next(vals)
|
| 96 |
"
|
|
|
|
| 88 |
if input_count > 0:
|
| 89 |
# Override input() to return provided values in order
|
| 90 |
stub = (
|
| 91 |
+
"import builtins
|
| 92 |
"
|
| 93 |
+
f"vals = iter([{', '.join(repr(v) for v in inputs)}])
|
| 94 |
+
"
|
| 95 |
+
"builtins.input = lambda prompt='': next(vals)
|
| 96 |
+
"
|
| 97 |
+
) for v in inputs)}])
|
| 98 |
"
|
| 99 |
"builtins.input = lambda prompt='': next(vals)
|
| 100 |
"
|