Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
from textblob import TextBlob
|
2 |
import gradio as gr
|
|
|
3 |
import os
|
4 |
os.system("python -m textblob.download_corpora")
|
5 |
control_json={'control':'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','char':'','leng':62}
|
@@ -94,7 +95,7 @@ def get_nouns(text=text,steps=1):
|
|
94 |
steps_mult=div_remain*char_len
|
95 |
#steps_mult=div_remain*char_len
|
96 |
print(steps_mult)
|
97 |
-
print(ceil(steps_mult))
|
98 |
step_list=[]
|
99 |
for z in range(1,steps):
|
100 |
if noun_cnt<=char_len*z:
|
|
|
1 |
from textblob import TextBlob
|
2 |
import gradio as gr
|
3 |
+
import math
|
4 |
import os
|
5 |
os.system("python -m textblob.download_corpora")
|
6 |
control_json={'control':'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','char':'','leng':62}
|
|
|
95 |
steps_mult=div_remain*char_len
|
96 |
#steps_mult=div_remain*char_len
|
97 |
print(steps_mult)
|
98 |
+
print(math.ceil(steps_mult))
|
99 |
step_list=[]
|
100 |
for z in range(1,steps):
|
101 |
if noun_cnt<=char_len*z:
|