Spaces:
Running on Zero

Ruurd commited on
Commit
a3a4100
·
verified ·
1 Parent(s): 6c7f510

Fix confidence guided noising call

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -235,7 +235,7 @@ def diffusion_chat(question, max_it, pause_length, sharpness, clustering, noise_
235
  # --- NOISING STEP ---
236
  threshold = get_noising_schedule(i, max_it, sharpness=sharpness)
237
  if use_confidence_noising:
238
- noised_answer = confidence_guided_noising(
239
  current_tokens, answer_start, confidences, noise_clipping, threshold=threshold, noise_start=noise_start
240
  )
241
  just_noised_indices = []
 
235
  # --- NOISING STEP ---
236
  threshold = get_noising_schedule(i, max_it, sharpness=sharpness)
237
  if use_confidence_noising:
238
+ noised_answer, just_noised_indices = confidence_guided_noising(
239
  current_tokens, answer_start, confidences, noise_clipping, threshold=threshold, noise_start=noise_start
240
  )
241
  just_noised_indices = []