multimodalart HF Staff commited on
Commit
94a9797
·
verified ·
1 Parent(s): 21451ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
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}",