Spaces:
Sleeping
Sleeping
Commit
·
292f96e
1
Parent(s):
0ae35dc
move the parameter root_path at the launch method
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def main():
|
|
| 24 |
class_names = config['dataset'][config['dataset']['name']]['class_names']
|
| 25 |
data_dir = os.path.join(config['dataset']['path'], config['dataset']['name'])
|
| 26 |
|
| 27 |
-
with gr.Blocks(theme=gr.themes.Glass(), css=css
|
| 28 |
# Main App Components
|
| 29 |
title = gr.Markdown("# Saliency evaluation - experiment 1")
|
| 30 |
user_state = gr.State(0)
|
|
@@ -284,7 +284,7 @@ def main():
|
|
| 284 |
redirect, js="window.location = 'https://marcoparola.github.io/saliency-evaluation-app/end'")
|
| 285 |
|
| 286 |
demo.load()
|
| 287 |
-
demo.launch()
|
| 288 |
|
| 289 |
if __name__ == "__main__":
|
| 290 |
main()
|
|
|
|
| 24 |
class_names = config['dataset'][config['dataset']['name']]['class_names']
|
| 25 |
data_dir = os.path.join(config['dataset']['path'], config['dataset']['name'])
|
| 26 |
|
| 27 |
+
with gr.Blocks(theme=gr.themes.Glass(), css=css) as demo:
|
| 28 |
# Main App Components
|
| 29 |
title = gr.Markdown("# Saliency evaluation - experiment 1")
|
| 30 |
user_state = gr.State(0)
|
|
|
|
| 284 |
redirect, js="window.location = 'https://marcoparola.github.io/saliency-evaluation-app/end'")
|
| 285 |
|
| 286 |
demo.load()
|
| 287 |
+
demo.launch(root_path='/')
|
| 288 |
|
| 289 |
if __name__ == "__main__":
|
| 290 |
main()
|