Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def visualize_isnad(taraf_num, yaxis):
|
|
80 |
node = [int(n) for n, d in G.out_degree() if d == 0][0]
|
81 |
gen_node = narrator_bios[narrator_bios['Rawi ID']==node]['Generation'].iloc[0]
|
82 |
name_node = narrator_bios[narrator_bios['Rawi ID']==node]['Famous Name'].iloc[0]
|
83 |
-
lst_hadith.append([taraf_matns[i], gen_node, name_node, taraf_book[i], taraf_author[i], taraf_hadith_number[i], str(node), i])
|
84 |
df = pd.DataFrame(lst_hadith, columns = ['Matn', 'Generation', 'Name', 'Book_Name', 'Author', 'Book Hadith Number', 'End Transmitter ID', 'Hadith Number'])
|
85 |
|
86 |
#hadith_cleaned = isnad_info['Hadiths Cleaned'].apply(lambda x: any(i in x for i in taraf_hadith_split) )
|
|
|
80 |
node = [int(n) for n, d in G.out_degree() if d == 0][0]
|
81 |
gen_node = narrator_bios[narrator_bios['Rawi ID']==node]['Generation'].iloc[0]
|
82 |
name_node = narrator_bios[narrator_bios['Rawi ID']==node]['Famous Name'].iloc[0]
|
83 |
+
lst_hadith.append([taraf_matns[i], gen_node, name_node, taraf_book[i], taraf_author[i], taraf_hadith_number[i], str(node), str(i)])
|
84 |
df = pd.DataFrame(lst_hadith, columns = ['Matn', 'Generation', 'Name', 'Book_Name', 'Author', 'Book Hadith Number', 'End Transmitter ID', 'Hadith Number'])
|
85 |
|
86 |
#hadith_cleaned = isnad_info['Hadiths Cleaned'].apply(lambda x: any(i in x for i in taraf_hadith_split) )
|