Skip to content

Commit e7a3f72

Browse files
authored
Update interactive.py
Signed-off-by: Mithun Gowda B <[email protected]>
1 parent 5111532 commit e7a3f72

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

SuperQwen/setup/interactive.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,8 @@ def handle_interactive_install():
4242
if component in INSTALL_MAP:
4343
ui.display_step(i, total_tasks, f"Installing {component}...")
4444

45-
progress_bar = ui.ProgressBar(100, prefix=f"{component.capitalize()}: ")
46-
INSTALL_MAP[component]()
47-
for j in range(101):
48-
time.sleep(0.01)
49-
progress_bar.update(j)
45+
progress_bar = ui.ProgressBar(1, prefix=f"{component.capitalize()}: ")
46+
INSTALL_MAP[component](progress_bar=progress_bar)
5047
progress_bar.finish()
5148

5249
ui.display_success("\n✅ Interactive installation complete!")
@@ -91,6 +88,7 @@ def handle_interactive_uninstall():
9188
if component in UNINSTALL_MAP:
9289
ui.display_step(i, total_tasks, f"Uninstalling {component}...")
9390

91+
# Uninstall progress is not easy to track, so we keep the simulation here
9492
progress_bar = ui.ProgressBar(100, prefix=f"{component.capitalize()}: ")
9593
UNINSTALL_MAP[component]()
9694
for j in range(101):

0 commit comments

Comments
 (0)