Astridkraft commited on
Commit
ef10ef6
·
verified ·
1 Parent(s): 83dca37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ class ProgressCallback:
112
  self.current_step = 0
113
 
114
  def __call__(self, step, timestep, latents):
115
- self.current_step = step
116
  progress_percent = (step / self.total_steps) * 100
117
  #self.progress(progress_percent / 100, desc=f"Transformation läuft... {progress_percent:.1f}%")
118
  self.progress(progress_percent / 100, desc="Generierung läuft - CPU benötigt bis zu 6 Minuten!")
 
112
  self.current_step = 0
113
 
114
  def __call__(self, step, timestep, latents):
115
+ self.current_step = step + 1
116
  progress_percent = (step / self.total_steps) * 100
117
  #self.progress(progress_percent / 100, desc=f"Transformation läuft... {progress_percent:.1f}%")
118
  self.progress(progress_percent / 100, desc="Generierung läuft - CPU benötigt bis zu 6 Minuten!")