Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.")
|