Spaces:
Runtime error
Runtime error
Commit
·
6a6244a
1
Parent(s):
5226e0b
more
Browse files- .gitignore +31 -0
- app.py +10 -5
.gitignore
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__
|
| 2 |
+
venv
|
| 3 |
+
env
|
| 4 |
+
.env
|
| 5 |
+
.venv
|
| 6 |
+
.pytest_cache
|
| 7 |
+
.coverage
|
| 8 |
+
.idea
|
| 9 |
+
.vscode
|
| 10 |
+
lightning_logs
|
| 11 |
+
.ipynb_checkpoints
|
| 12 |
+
.ckpt
|
| 13 |
+
example.ckpt
|
| 14 |
+
.neptune
|
| 15 |
+
logs_for_plots
|
| 16 |
+
logs_for_heuristics
|
| 17 |
+
logs_for_graphs
|
| 18 |
+
logs_for_freedom_maps
|
| 19 |
+
logs_for_experiments
|
| 20 |
+
heuristic_tables
|
| 21 |
+
stats
|
| 22 |
+
videos
|
| 23 |
+
algs_RL/stasts
|
| 24 |
+
.DS_Store
|
| 25 |
+
saved_replays
|
| 26 |
+
my_folder
|
| 27 |
+
results
|
| 28 |
+
test-trainer
|
| 29 |
+
.gradio
|
| 30 |
+
secrets.txt
|
| 31 |
+
ppo_tensorboard
|
app.py
CHANGED
|
@@ -9,6 +9,9 @@ custom_css = """
|
|
| 9 |
background-color: #f0f0f0;
|
| 10 |
font-weight: bold;
|
| 11 |
}
|
|
|
|
|
|
|
|
|
|
| 12 |
"""
|
| 13 |
|
| 14 |
|
|
@@ -25,19 +28,21 @@ def greet(name):
|
|
| 25 |
# ---------------------------- #
|
| 26 |
with gr.Blocks(css=custom_css) as demo:
|
| 27 |
# ARRANGEMENTS
|
| 28 |
-
gr.Markdown("# MAPF solver")
|
| 29 |
with gr.Row():
|
| 30 |
with gr.Column(scale=10):
|
|
|
|
| 31 |
input_map = gr.File(label="Drop `.map` file")
|
| 32 |
input_start_locations = gr.Textbox(label='Start locations config:')
|
| 33 |
input_goal_locations = gr.Textbox(label='Goal locations config:')
|
| 34 |
solve_btn = gr.Button("Solve", variant='primary')
|
| 35 |
with gr.Column(scale=12):
|
| 36 |
-
|
|
|
|
| 37 |
with gr.Row():
|
| 38 |
-
output_soc = gr.Number(label='Sum-of-Costs:')
|
| 39 |
-
output_makespan = gr.Number(label='Makespan:')
|
| 40 |
-
output_rt = gr.Number(label='Runtime:')
|
| 41 |
with gr.Accordion("TODO List", open=False):
|
| 42 |
gr.Markdown("""
|
| 43 |
## PLAN
|
|
|
|
| 9 |
background-color: #f0f0f0;
|
| 10 |
font-weight: bold;
|
| 11 |
}
|
| 12 |
+
#title {
|
| 13 |
+
text-align: center;
|
| 14 |
+
}
|
| 15 |
"""
|
| 16 |
|
| 17 |
|
|
|
|
| 28 |
# ---------------------------- #
|
| 29 |
with gr.Blocks(css=custom_css) as demo:
|
| 30 |
# ARRANGEMENTS
|
| 31 |
+
gr.Markdown("# MAPF solver", elem_id="title")
|
| 32 |
with gr.Row():
|
| 33 |
with gr.Column(scale=10):
|
| 34 |
+
gr.Markdown("## Input Data")
|
| 35 |
input_map = gr.File(label="Drop `.map` file")
|
| 36 |
input_start_locations = gr.Textbox(label='Start locations config:')
|
| 37 |
input_goal_locations = gr.Textbox(label='Goal locations config:')
|
| 38 |
solve_btn = gr.Button("Solve", variant='primary')
|
| 39 |
with gr.Column(scale=12):
|
| 40 |
+
gr.Markdown("## Output Result")
|
| 41 |
+
output_env = gr.Video(label="Solution:", autoplay=True, interactive=False)
|
| 42 |
with gr.Row():
|
| 43 |
+
output_soc = gr.Number(label='Sum-of-Costs:', interactive=False)
|
| 44 |
+
output_makespan = gr.Number(label='Makespan:', interactive=False)
|
| 45 |
+
output_rt = gr.Number(label='Runtime:', interactive=False)
|
| 46 |
with gr.Accordion("TODO List", open=False):
|
| 47 |
gr.Markdown("""
|
| 48 |
## PLAN
|