Spaces:
Sleeping
Sleeping
Update clothGen.py
Browse files- clothGen.py +1 -1
clothGen.py
CHANGED
@@ -24,7 +24,7 @@ def cloth_gen(advice, gender):
|
|
24 |
promptGen = ""
|
25 |
if start_index != -1:
|
26 |
start_index += len("prompt\n")
|
27 |
-
end_index = prompt.find("
|
28 |
if end_index != -1:
|
29 |
extracted_content = prompt[start_index:end_index]
|
30 |
promptGen = extracted_content
|
|
|
24 |
promptGen = ""
|
25 |
if start_index != -1:
|
26 |
start_index += len("prompt\n")
|
27 |
+
end_index = prompt.find("End" or "end")
|
28 |
if end_index != -1:
|
29 |
extracted_content = prompt[start_index:end_index]
|
30 |
promptGen = extracted_content
|