vsj0702 commited on
Commit
d03852c
·
verified ·
1 Parent(s): ade0c56

fixing bug

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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
- "import builtins
92
  "
93
- f"vals = iter([{', '.join(repr(v) for v in inputs)}])
 
 
 
 
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
  "