Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -345,7 +345,8 @@ def visualize_narrator_taraf(taraf_num, narrator, yaxis):
|
|
| 345 |
|
| 346 |
|
| 347 |
narrator_matn_info = taraf[taraf['bookid_hadithid'].isin(matns_with_narrator)]
|
| 348 |
-
|
|
|
|
| 349 |
x_stretch = 4
|
| 350 |
y_stretch = 4
|
| 351 |
net = Network(directed =True)
|
|
@@ -395,7 +396,7 @@ def visualize_narrator_taraf(taraf_num, narrator, yaxis):
|
|
| 395 |
display-capture; encrypted-media;" sandbox="allow-modals allow-forms
|
| 396 |
allow-scripts allow-same-origin allow-popups
|
| 397 |
allow-top-navigation-by-user-activation allow-downloads" allowfullscreen=""
|
| 398 |
-
allowpaymentrequest="" frameborder="0" srcdoc='{html}'></iframe>""" , narrator_matn_info[['matn', 'Book_Name', 'Author', 'Book_ID', 'Hadith Number', 'Index']]
|
| 399 |
|
| 400 |
|
| 401 |
|
|
|
|
| 345 |
|
| 346 |
|
| 347 |
narrator_matn_info = taraf[taraf['bookid_hadithid'].isin(matns_with_narrator)]
|
| 348 |
+
num_hadith = narrator_matn_info.shape[0]
|
| 349 |
+
narrator_matn_info['Subset Index'] = np.arange(num_hadith)
|
| 350 |
x_stretch = 4
|
| 351 |
y_stretch = 4
|
| 352 |
net = Network(directed =True)
|
|
|
|
| 396 |
display-capture; encrypted-media;" sandbox="allow-modals allow-forms
|
| 397 |
allow-scripts allow-same-origin allow-popups
|
| 398 |
allow-top-navigation-by-user-activation allow-downloads" allowfullscreen=""
|
| 399 |
+
allowpaymentrequest="" frameborder="0" srcdoc='{html}'></iframe>""" , narrator_matn_info[['matn', 'Book_Name', 'Author', 'Book_ID', 'Hadith Number', 'Index', 'Subset Index']]
|
| 400 |
|
| 401 |
|
| 402 |
|