ranamhamoud commited on
Commit
0b5c654
·
verified ·
1 Parent(s): 1e69bad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- text = re.sub(r'\[.*?\]', '', text, flags=re.DOTALL)
 
 
62
 
63
- return text
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(