Spaces:
Build error
Build error
salomonsky
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -143,7 +143,7 @@ async def improve_prompt(prompt):
|
|
143 |
except Exception as e:
|
144 |
return f"Error mejorando el prompt: {e}"
|
145 |
|
146 |
-
|
147 |
prompts = set()
|
148 |
while len(prompts) < num_variants:
|
149 |
if use_enhanced:
|
|
|
143 |
except Exception as e:
|
144 |
return f"Error mejorando el prompt: {e}"
|
145 |
|
146 |
+
def generate_variations(prompt, num_variants, use_enhanced):
|
147 |
prompts = set()
|
148 |
while len(prompts) < num_variants:
|
149 |
if use_enhanced:
|