will33am commited on
Commit
60216b6
·
1 Parent(s): 448630d
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +5 -2
  2. app.py +5 -2
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -33,6 +33,7 @@ def func_slider(index,column_textbox):
33
  dataset = load_dataset("GazeLocation/stimuli_heatmaps",split = 'train')
34
  METHODS, ARCHS = get_methods_and_arch(dataset)
35
  index_default = 0
 
36
 
37
  if __name__ == '__main__':
38
  demo = gr.Blocks()
@@ -70,7 +71,9 @@ if __name__ == '__main__':
70
  hf_slider.change(func_slider,
71
  inputs = [hf_slider,column_textbox],
72
  outputs = [image_input, image_output])
73
-
74
- demo.launch(share = True,debug = True)
 
 
75
 
76
 
 
33
  dataset = load_dataset("GazeLocation/stimuli_heatmaps",split = 'train')
34
  METHODS, ARCHS = get_methods_and_arch(dataset)
35
  index_default = 0
36
+ DEMO = False
37
 
38
  if __name__ == '__main__':
39
  demo = gr.Blocks()
 
71
  hf_slider.change(func_slider,
72
  inputs = [hf_slider,column_textbox],
73
  outputs = [image_input, image_output])
74
+ if DEMO:
75
+ demo.launch(share = True,debug = True)
76
+ else:
77
+ demo.launch()
78
 
79
 
app.py CHANGED
@@ -33,6 +33,7 @@ def func_slider(index,column_textbox):
33
  dataset = load_dataset("GazeLocation/stimuli_heatmaps",split = 'train')
34
  METHODS, ARCHS = get_methods_and_arch(dataset)
35
  index_default = 0
 
36
 
37
  if __name__ == '__main__':
38
  demo = gr.Blocks()
@@ -70,7 +71,9 @@ if __name__ == '__main__':
70
  hf_slider.change(func_slider,
71
  inputs = [hf_slider,column_textbox],
72
  outputs = [image_input, image_output])
73
-
74
- demo.launch(share = True,debug = True)
 
 
75
 
76
 
 
33
  dataset = load_dataset("GazeLocation/stimuli_heatmaps",split = 'train')
34
  METHODS, ARCHS = get_methods_and_arch(dataset)
35
  index_default = 0
36
+ DEMO = False
37
 
38
  if __name__ == '__main__':
39
  demo = gr.Blocks()
 
71
  hf_slider.change(func_slider,
72
  inputs = [hf_slider,column_textbox],
73
  outputs = [image_input, image_output])
74
+ if DEMO:
75
+ demo.launch(share = True,debug = True)
76
+ else:
77
+ demo.launch()
78
 
79