Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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()
|