Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -452,7 +452,7 @@ def generate_30(
|
|
| 452 |
expanded = expand_prompt(captions)
|
| 453 |
pattern = r"(?<=\|)[^\|]+(?=\|)"
|
| 454 |
new_prompt = expanded
|
| 455 |
-
match = re.search(pattern,
|
| 456 |
if match:
|
| 457 |
new_prompt=match.group(0)
|
| 458 |
print("-- ------------ --")
|
|
@@ -619,7 +619,7 @@ def generate_60(
|
|
| 619 |
expanded = expand_prompt(captions)
|
| 620 |
pattern = r"(?<=\|)[^\|]+(?=\|)"
|
| 621 |
new_prompt = expanded
|
| 622 |
-
match = re.search(pattern,
|
| 623 |
if match:
|
| 624 |
new_prompt=match.group(0)
|
| 625 |
print("-- ------------ --")
|
|
@@ -786,7 +786,7 @@ def generate_90(
|
|
| 786 |
expanded = expand_prompt(captions)
|
| 787 |
pattern = r"(?<=\|)[^\|]+(?=\|)"
|
| 788 |
new_prompt = expanded
|
| 789 |
-
match = re.search(pattern,
|
| 790 |
if match:
|
| 791 |
new_prompt=match.group(0)
|
| 792 |
print("-- ------------ --")
|
|
|
|
| 452 |
expanded = expand_prompt(captions)
|
| 453 |
pattern = r"(?<=\|)[^\|]+(?=\|)"
|
| 454 |
new_prompt = expanded
|
| 455 |
+
match = re.search(pattern, new_prompt)
|
| 456 |
if match:
|
| 457 |
new_prompt=match.group(0)
|
| 458 |
print("-- ------------ --")
|
|
|
|
| 619 |
expanded = expand_prompt(captions)
|
| 620 |
pattern = r"(?<=\|)[^\|]+(?=\|)"
|
| 621 |
new_prompt = expanded
|
| 622 |
+
match = re.search(pattern, new_prompt)
|
| 623 |
if match:
|
| 624 |
new_prompt=match.group(0)
|
| 625 |
print("-- ------------ --")
|
|
|
|
| 786 |
expanded = expand_prompt(captions)
|
| 787 |
pattern = r"(?<=\|)[^\|]+(?=\|)"
|
| 788 |
new_prompt = expanded
|
| 789 |
+
match = re.search(pattern, new_prompt)
|
| 790 |
if match:
|
| 791 |
new_prompt=match.group(0)
|
| 792 |
print("-- ------------ --")
|