gokaygokay commited on
Commit
b3325a7
1 Parent(s): 81a88cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ def modify_caption(caption: str) -> str:
33
  return replacers[match.group(0)]
34
 
35
  # Apply the regex to the caption
36
- return re.sub(pattern, replace_fn, caption, count=1, flags=re.IGNORECASE).capitalize()
37
 
38
  # Example usage in your existing function
39
  @spaces.GPU
 
33
  return replacers[match.group(0)]
34
 
35
  # Apply the regex to the caption
36
+ return re.sub(pattern, replace_fn, caption, count=1, flags=re.IGNORECASE)
37
 
38
  # Example usage in your existing function
39
  @spaces.GPU