FDSRashid commited on
Commit
a77555e
·
verified ·
1 Parent(s): b28445b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -249,7 +249,7 @@ def visualize_hadith_isnad(df, yaxis):
249
  display-capture; encrypted-media;" sandbox="allow-modals allow-forms
250
  allow-scripts allow-same-origin allow-popups
251
  allow-top-navigation-by-user-activation allow-downloads" allowfullscreen=""
252
- allowpaymentrequest="" frameborder="0" srcdoc='{html}'></iframe>"""
253
 
254
 
255
  def visualize_narrator_taraf(taraf_num, narrator, yaxis):
@@ -346,7 +346,7 @@ with gr.Blocks() as demo:
346
  row_count=5,
347
  col_count=(2, "fixed"))
348
  btn_hadith = gr.Button('Visualize')
349
- btn_hadith.click(fn=visualize_hadith_isnad, inputs=[hadith_selection, yyaxis], outputs=[gr.HTML()])
350
  with gr.Tab('Taraf Narrator Isnad Visualizer'):
351
  Yaxis = gr.Dropdown(choices = ['Taraf', 'Hadith', 'Isnad', 'Book'], value = 'Taraf', label = 'Variable to Display', info = 'Choose the variable to visualize.')
352
  taraf_number = gr.Slider(1,taraf_max , value=10000, label="Taraf", info="Choose the Taraf to Input", step = 1)
 
249
  display-capture; encrypted-media;" sandbox="allow-modals allow-forms
250
  allow-scripts allow-same-origin allow-popups
251
  allow-top-navigation-by-user-activation allow-downloads" allowfullscreen=""
252
+ allowpaymentrequest="" frameborder="0" srcdoc='{html}'></iframe>""" , hadith[['matn', 'Book_ID', 'Hadith Number', 'Book_Name', 'Author', 'taraf_ID']]
253
 
254
 
255
  def visualize_narrator_taraf(taraf_num, narrator, yaxis):
 
346
  row_count=5,
347
  col_count=(2, "fixed"))
348
  btn_hadith = gr.Button('Visualize')
349
+ btn_hadith.click(fn=visualize_hadith_isnad, inputs=[hadith_selection, yyaxis], outputs=[gr.HTML(), gr.DataFrame(wrap=True)])
350
  with gr.Tab('Taraf Narrator Isnad Visualizer'):
351
  Yaxis = gr.Dropdown(choices = ['Taraf', 'Hadith', 'Isnad', 'Book'], value = 'Taraf', label = 'Variable to Display', info = 'Choose the variable to visualize.')
352
  taraf_number = gr.Slider(1,taraf_max , value=10000, label="Taraf", info="Choose the Taraf to Input", step = 1)