Hamda commited on
Commit
104e653
1 Parent(s): 635e801

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -63,12 +63,7 @@ if (st.checkbox('الاستعانة بالرسم البياني المعرفي
63
 
64
  #@st.cache
65
  def Query2id(voc, query):
66
- try:
67
- return [voc.index[voc['word'] == word].values[0] for word in query.split()]
68
- except KeyError:
69
- st.markdown("""---""")
70
- st.write('لم يتم التعرف على الكلمة')
71
- st.markdown("""---""")
72
 
73
  id_list = Query2id(df3, sent)
74
  #@st.cache
 
63
 
64
  #@st.cache
65
  def Query2id(voc, query):
66
+ return [voc.index[voc['word'] == word].values[0] for word in query.split()]
 
 
 
 
 
67
 
68
  id_list = Query2id(df3, sent)
69
  #@st.cache