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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -170,7 +170,7 @@ def freq(output_file, input_checks):
170
  width=600).configure_axis(
171
  grid=False).interactive()
172
 
173
- if "emotion distribution over time" in input_checks or (output_file.name).endswith('data.txt'):
174
  return gr.update(value=plot, visible=True), gr.update(visible=True), gr.update(visible=False), gr.update(visible=False) # next_button_dist becomes available
175
  elif "peaks" in input_checks:
176
  return gr.update(value=plot, visible=True), gr.update(visible=False), gr.update(visible=True), gr.update(visible=False) # next_button_peaks becomes available
 
170
  width=600).configure_axis(
171
  grid=False).interactive()
172
 
173
+ if "emotion distribution over time" in input_checks or (output_file.name).startswith('/tmp/data'):
174
  return gr.update(value=plot, visible=True), gr.update(visible=True), gr.update(visible=False), gr.update(visible=False) # next_button_dist becomes available
175
  elif "peaks" in input_checks:
176
  return gr.update(value=plot, visible=True), gr.update(visible=False), gr.update(visible=True), gr.update(visible=False) # next_button_peaks becomes available