gigant commited on
Commit
7178416
·
1 Parent(s): b27db9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -258,7 +258,7 @@ with gr.Blocks() as demo:
258
  plot_adj = gr.Plot(label="Word graph adjacency matrix")
259
 
260
  id.change(get_list_sentences, id, sentence_transcript)
261
- sentence_transcript.change(plot_graph_sentence, sentence_transcript, [plot_graph, plot_adj])
262
- sentence_typed.change(plot_graph_sentence, sentence_typed, [plot_graph, plot_adj])
263
 
264
  demo.launch()
 
258
  plot_adj = gr.Plot(label="Word graph adjacency matrix")
259
 
260
  id.change(get_list_sentences, id, sentence_transcript)
261
+ sentence_transcript.change(plot_graph_sentence, [sentence_transcript, graph_type], [plot_graph, plot_adj])
262
+ sentence_typed.change(plot_graph_sentence, [sentence_typed, graph_type], [plot_graph, plot_adj])
263
 
264
  demo.launch()