Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,15 +8,6 @@ def test_loop_function(iterations_count, text_param, progress=gr.Progress()):
|
|
8 |
print(f"Expected iterations_count: {iterations_count} (type: {type(iterations_count)})")
|
9 |
print(f"text_param: '{text_param}' (type: {type(text_param)})")
|
10 |
print(f"Progress object received: {progress} (type: {type(progress)})")
|
11 |
-
|
12 |
-
if not isinstance(iterations_count, int):
|
13 |
-
try:
|
14 |
-
iterations_count = int(iterations_count)
|
15 |
-
print(f"Converted iterations_count to int: {iterations_count}")
|
16 |
-
except ValueError:
|
17 |
-
error_msg = f"ERROR: iterations_count ('{iterations_count}') could not be converted to int."
|
18 |
-
print(error_msg)
|
19 |
-
return error_msg
|
20 |
|
21 |
log_messages = [
|
22 |
f"Expected iterations: {iterations_count}",
|
|
|
8 |
print(f"Expected iterations_count: {iterations_count} (type: {type(iterations_count)})")
|
9 |
print(f"text_param: '{text_param}' (type: {type(text_param)})")
|
10 |
print(f"Progress object received: {progress} (type: {type(progress)})")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
log_messages = [
|
13 |
f"Expected iterations: {iterations_count}",
|