Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -91,6 +91,7 @@ with gr.Blocks() as demo:
|
|
91 |
text_input = gr.Textbox()
|
92 |
text_output = gr.DataFrame()
|
93 |
text_button = gr.Button("Search")
|
|
|
94 |
with gr.Tab("Visualize Network"):
|
95 |
with gr.Row():
|
96 |
image_input = gr.Number()
|
@@ -99,9 +100,10 @@ with gr.Blocks() as demo:
|
|
99 |
Yaxis = gr.Dropdown(choices = ['Tarafs', 'Hadiths', 'Isnads', 'Books'], value = 'Tarafs', label = 'Variable to Display', info = 'Choose the variable to visualize.')
|
100 |
image_output = gr.HTML()
|
101 |
image_button = gr.Button("Visualize!")
|
|
|
102 |
|
103 |
-
|
104 |
-
|
105 |
|
106 |
demo.launch()
|
107 |
|
|
|
91 |
text_input = gr.Textbox()
|
92 |
text_output = gr.DataFrame()
|
93 |
text_button = gr.Button("Search")
|
94 |
+
text_button.click(narrator_retriever, inputs=text_input, outputs=text_output)
|
95 |
with gr.Tab("Visualize Network"):
|
96 |
with gr.Row():
|
97 |
image_input = gr.Number()
|
|
|
100 |
Yaxis = gr.Dropdown(choices = ['Tarafs', 'Hadiths', 'Isnads', 'Books'], value = 'Tarafs', label = 'Variable to Display', info = 'Choose the variable to visualize.')
|
101 |
image_output = gr.HTML()
|
102 |
image_button = gr.Button("Visualize!")
|
103 |
+
image_button.click(network_narrator, inputs=[image_input, FirstYear, Last_Year, Yaxis], outputs=[image_output, gr.DataFrame()])
|
104 |
|
105 |
+
|
106 |
+
|
107 |
|
108 |
demo.launch()
|
109 |
|