Update app.py
Browse files
app.py
CHANGED
@@ -241,7 +241,7 @@ def visualize_subTaraf(taraf_num, hadith_str, yaxis):
|
|
241 |
taraf['Index'] = np.arange(num_hadith)
|
242 |
sub_taraf = taraf[taraf['Index'].isin(hadiths)]
|
243 |
|
244 |
-
isnad_hadith = isnad_info.iloc[lookup_hadith(
|
245 |
isnad_hadith[['Source', 'Destination']] = isnad_hadith[['Source', 'Destination']].astype(int)
|
246 |
|
247 |
# Merge isnad_hadith with narrator_bios for Teacher and Student
|
|
|
241 |
taraf['Index'] = np.arange(num_hadith)
|
242 |
sub_taraf = taraf[taraf['Index'].isin(hadiths)]
|
243 |
|
244 |
+
isnad_hadith = isnad_info.iloc[lookup_hadith(sub_taraf['bookid_hadithid'].to_list(), HADITH_LOOKUP)]
|
245 |
isnad_hadith[['Source', 'Destination']] = isnad_hadith[['Source', 'Destination']].astype(int)
|
246 |
|
247 |
# Merge isnad_hadith with narrator_bios for Teacher and Student
|