Spaces:
Sleeping
Sleeping
Montazerh82
commited on
Commit
•
dc886e0
1
Parent(s):
4a0869b
change in normalizer
Browse files- .gitignore +4 -0
- app.py +1 -1
- normalizer.py +1 -1
.gitignore
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.gitignore
|
2 |
+
test.ipynb
|
3 |
+
__pycache__/
|
4 |
+
|
app.py
CHANGED
@@ -11,7 +11,7 @@ def greet(text):
|
|
11 |
return results
|
12 |
|
13 |
|
14 |
-
demo = gr.Interface(fn=greet, inputs=gr.Textbox(label='input text'), outputs=gr.Textbox(label="
|
15 |
allow_flagging='never')
|
16 |
|
17 |
|
|
|
11 |
return results
|
12 |
|
13 |
|
14 |
+
demo = gr.Interface(fn=greet, inputs=gr.Textbox(label='input text'), outputs=gr.Textbox(label="output text:"),
|
15 |
allow_flagging='never')
|
16 |
|
17 |
|
normalizer.py
CHANGED
@@ -60,7 +60,7 @@ def cleaning(text):
|
|
60 |
# )
|
61 |
text = clean(text,
|
62 |
extra_spaces=True,
|
63 |
-
lowercase=True
|
64 |
)
|
65 |
|
66 |
# cleaning htmls
|
|
|
60 |
# )
|
61 |
text = clean(text,
|
62 |
extra_spaces=True,
|
63 |
+
# lowercase=True
|
64 |
)
|
65 |
|
66 |
# cleaning htmls
|