fffiloni commited on
Commit
42445cf
·
verified ·
1 Parent(s): 417bb8d

Update simple_app.py

Browse files
Files changed (1) hide show
  1. simple_app.py +3 -2
simple_app.py CHANGED
@@ -73,8 +73,9 @@ def infer(prompt, progress=gr.Progress(track_tqdm=True)):
73
  else:
74
  overall_bar.update(1)
75
  percentage = (overall_bar.n / overall_bar.total) * 100
76
- # Directly assign to the description property.
77
- overall_bar.desc = f"Overall Process - {percentage:.1f}% | {msg}"
 
78
  overall_bar.refresh()
79
  else:
80
  # Print any other lines.
 
73
  else:
74
  overall_bar.update(1)
75
  percentage = (overall_bar.n / overall_bar.total) * 100
76
+ overall_bar.set_description(f"Overall Process - {percentage:.1f}%")
77
+ overall_bar.set_postfix_str(msg)
78
+ print(msg)
79
  overall_bar.refresh()
80
  else:
81
  # Print any other lines.