JohanBeytell commited on
Commit
e54ec1f
·
verified ·
1 Parent(s): 8560a3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -83,6 +83,7 @@ def sample_once(prompt, temperature=1.0, top_k=40, max_new=24):
83
 
84
  # === Generation Function ===
85
  def generate_names(prompt, temperature, top_k, count, retries):
 
86
  prompt = prompt.strip()
87
  if not prompt:
88
  raise gr.Error("Prompt cannot be empty.")
 
83
 
84
  # === Generation Function ===
85
  def generate_names(prompt, temperature, top_k, count, retries):
86
+ global total_retry_count
87
  prompt = prompt.strip()
88
  if not prompt:
89
  raise gr.Error("Prompt cannot be empty.")