heatingma commited on
Commit
f620fdf
·
verified ·
1 Parent(s): bf1b1d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,7 +1,6 @@
1
  import time
2
  import shutil
3
  import gradio as gr
4
- from fastapi import FastAPI
5
  from data4co import TSPConcordeSolver, draw_tsp_problem, draw_tsp_solution
6
 
7
 
@@ -140,5 +139,5 @@ with gr.Blocks() as tsp_page:
140
  )
141
 
142
 
143
- app = FastAPI()
144
- app = gr.mount_gradio_app(app, tsp_page, path="/")
 
1
  import time
2
  import shutil
3
  import gradio as gr
 
4
  from data4co import TSPConcordeSolver, draw_tsp_problem, draw_tsp_solution
5
 
6
 
 
139
  )
140
 
141
 
142
+ if __name__ == "__main__":
143
+ tsp_page.launch(debug = True)