Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
|
|
3 |
import os
|
4 |
os.system("python -m textblob.download_corpora")
|
5 |
control_json={'control':'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','char':'','leng':62}
|
|
|
6 |
cont_list=list(string_json['control'])
|
7 |
|
8 |
|
@@ -72,6 +73,7 @@ def get_nouns(text=text,steps=1):
|
|
72 |
print(list(json_object.keys())[-1])
|
73 |
else:
|
74 |
cnt+=1
|
|
|
75 |
|
76 |
|
77 |
|
|
|
3 |
import os
|
4 |
os.system("python -m textblob.download_corpora")
|
5 |
control_json={'control':'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','char':'','leng':62}
|
6 |
+
string_json={'control':'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN','char':'OPQRSTUVWXYZ','leng':50}
|
7 |
cont_list=list(string_json['control'])
|
8 |
|
9 |
|
|
|
73 |
print(list(json_object.keys())[-1])
|
74 |
else:
|
75 |
cnt+=1
|
76 |
+
return json_object,noun_list
|
77 |
|
78 |
|
79 |
|