Omnibus commited on
Commit
c21bd5e
·
1 Parent(s): e1eb6a4

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from modeler import SfM
3
+
4
+
5
+ def make_model(vid_path):
6
+ sfm = SfM('results/', False, 'videos/vid1.mp4', 27)
7
+ sfm.structure_from_motion()
8
+
9
+ with gr.Blocks() as app:
10
+ inp=gr.Textbox(label="URL")
11
+ btn=gr.Button()
12
+ out=gr.Files()
13
+ app.launch()