lunadebruyne commited on
Commit
db8107b
·
1 Parent(s): 2cbbbf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -248,7 +248,7 @@ def dist(output_file, input_checks):
248
 
249
  plot = (points + lines).properties(width=600, height=350).interactive()
250
 
251
- if "peaks" in input_checks:
252
  return gr.Plot.update(value=plot, visible=True), gr.update(visible=True), gr.update(visible=False) # next_button_peaks becomes available
253
  elif "topics" in input_checks:
254
  return gr.Plot.update(value=plot, visible=True), gr.update(visible=False), gr.update(visible=True) # next_button_topics becomes available
 
248
 
249
  plot = (points + lines).properties(width=600, height=350).interactive()
250
 
251
+ if "peaks" in input_checks or (output_file.name).startswith('/tmp/data'):
252
  return gr.Plot.update(value=plot, visible=True), gr.update(visible=True), gr.update(visible=False) # next_button_peaks becomes available
253
  elif "topics" in input_checks:
254
  return gr.Plot.update(value=plot, visible=True), gr.update(visible=False), gr.update(visible=True) # next_button_topics becomes available