Spaces:
Runtime error
Runtime error
Update app.py
#2
by
JPLTedCas
- opened
app.py
CHANGED
@@ -50,12 +50,12 @@ if result :#line:66:if result:
|
|
50 |
|
51 |
if query !="none":#line:86:if query!="salir":
|
52 |
|
53 |
-
st .text ("query: "+query )#line:81:st.text("query: "+query)
|
54 |
query =query .lower ()#line:82:query = query.lower()
|
55 |
if query !="salir":#line:87:if query!="none":
|
56 |
-
st .text ("query: "+query )#line:89:st.text("query: "+query)
|
57 |
result =query .split ()#line:90:result=query.split()
|
58 |
-
st .text ("query: "+query )#line:91:st.text("query: "+query)
|
59 |
df2 =[]#line:92:df2=[]
|
60 |
for index ,row in df .iterrows ():#line:93:for index,row in df.iterrows():
|
61 |
list_words =df .loc [index ,'TAGS2']#line:96:list_words=df.loc[index,'TAGS2']#busca columna tag2
|
@@ -65,7 +65,7 @@ if query !="none":#line:86:if query!="salir":
|
|
65 |
list_words =[]#line:104:list_words=[]
|
66 |
for indexw ,word in enumerate (result ):#line:105:for indexw, word in enumerate(result):
|
67 |
result [indexw ]=inflector .singularize (str (word ))#line:106:result[indexw]=inflector.singularize(str(word))
|
68 |
-
st .text ("result:"+str (result ))#line:107:st.text("result:" + str(result))
|
69 |
count_words =np .zeros (len (df .index ),dtype =int )#line:108:count_words = np.zeros(len(df.index), dtype=int)
|
70 |
for index1 ,row in enumerate (df2 ):#line:109:for index1,row in enumerate(df2):
|
71 |
ls4 =[]#line:112:ls4=[]
|
|
|
50 |
|
51 |
if query !="none":#line:86:if query!="salir":
|
52 |
|
53 |
+
#st .text ("query: "+query )#line:81:st.text("query: "+query)
|
54 |
query =query .lower ()#line:82:query = query.lower()
|
55 |
if query !="salir":#line:87:if query!="none":
|
56 |
+
#st .text ("query: "+query )#line:89:st.text("query: "+query)
|
57 |
result =query .split ()#line:90:result=query.split()
|
58 |
+
#st .text ("query: "+query )#line:91:st.text("query: "+query)
|
59 |
df2 =[]#line:92:df2=[]
|
60 |
for index ,row in df .iterrows ():#line:93:for index,row in df.iterrows():
|
61 |
list_words =df .loc [index ,'TAGS2']#line:96:list_words=df.loc[index,'TAGS2']#busca columna tag2
|
|
|
65 |
list_words =[]#line:104:list_words=[]
|
66 |
for indexw ,word in enumerate (result ):#line:105:for indexw, word in enumerate(result):
|
67 |
result [indexw ]=inflector .singularize (str (word ))#line:106:result[indexw]=inflector.singularize(str(word))
|
68 |
+
#st .text ("result:"+str (result ))#line:107:st.text("result:" + str(result))
|
69 |
count_words =np .zeros (len (df .index ),dtype =int )#line:108:count_words = np.zeros(len(df.index), dtype=int)
|
70 |
for index1 ,row in enumerate (df2 ):#line:109:for index1,row in enumerate(df2):
|
71 |
ls4 =[]#line:112:ls4=[]
|