Spaces:
Sleeping
Sleeping
BilalSardar
commited on
Commit
•
7e63420
1
Parent(s):
07027a4
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import cv2
|
|
2 |
import os
|
3 |
from moviepy.editor import *
|
4 |
import gradio as gr
|
5 |
-
|
6 |
|
7 |
def parse_string(string, dataset):
|
8 |
parsed_list = []
|
@@ -59,6 +59,7 @@ print(VideosNames)
|
|
59 |
def texttoSign(text):
|
60 |
text=text+" "
|
61 |
text=text.lower()
|
|
|
62 |
framescount=0
|
63 |
listofwords=parse_string(text,VideosNames)
|
64 |
listofwords=remove_empty_values(listofwords)
|
|
|
2 |
import os
|
3 |
from moviepy.editor import *
|
4 |
import gradio as gr
|
5 |
+
import re
|
6 |
|
7 |
def parse_string(string, dataset):
|
8 |
parsed_list = []
|
|
|
59 |
def texttoSign(text):
|
60 |
text=text+" "
|
61 |
text=text.lower()
|
62 |
+
text=re.sub('[^a-z]+', '', mystring)
|
63 |
framescount=0
|
64 |
listofwords=parse_string(text,VideosNames)
|
65 |
listofwords=remove_empty_values(listofwords)
|