Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -58,9 +58,11 @@ def make_prompt(entry):
|
|
58 |
# f"TELL A STORY, RELATE TO COMPUTER SCIENCE, INCLUDE ASSESMENTS. MAKE IT REALISTIC AND AROUND 800 WORDS, END THE STORY WITH "THE END.": {entry}"
|
59 |
|
60 |
def process_text(text):
|
61 |
-
|
|
|
|
|
62 |
|
63 |
-
return
|
64 |
|
65 |
@spaces.GPU
|
66 |
def generate(
|
|
|
58 |
# f"TELL A STORY, RELATE TO COMPUTER SCIENCE, INCLUDE ASSESMENTS. MAKE IT REALISTIC AND AROUND 800 WORDS, END THE STORY WITH "THE END.": {entry}"
|
59 |
|
60 |
def process_text(text):
|
61 |
+
print("Before:", text)
|
62 |
+
processed_text = re.sub(r'\[.*?\]', '', text, flags=re.DOTALL)
|
63 |
+
print("After:", processed_text)
|
64 |
|
65 |
+
return processed_text
|
66 |
|
67 |
@spaces.GPU
|
68 |
def generate(
|