Spaces:
Runtime error
Runtime error
Commit ·
0ae35dc
1
Parent(s): 63d85d1
try to solve api not found bug by adding the parameter root_path
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) as demo:
|
| 28 |
# Main App Components
|
| 29 |
title = gr.Markdown("# Saliency evaluation - experiment 1")
|
| 30 |
user_state = gr.State(0)
|
|
|
|
| 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, root_path='/') as demo:
|
| 28 |
# Main App Components
|
| 29 |
title = gr.Markdown("# Saliency evaluation - experiment 1")
|
| 30 |
user_state = gr.State(0)
|