Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,4 @@
|
|
| 1 |
-
#! /usr/bin/env python
|
| 2 |
-
# -*- coding: utf-8 -*-
|
| 3 |
-
|
| 4 |
-
# Copyright 2023 Imperial College London (Pingchuan Ma)
|
| 5 |
-
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
| 6 |
import os
|
| 7 |
-
import datetime
|
| 8 |
-
import subprocess
|
| 9 |
import gradio as gr
|
| 10 |
from pipelines.pipeline import InferencePipeline
|
| 11 |
|
|
@@ -18,7 +11,6 @@ print("Step 0. Model has been loaded.")
|
|
| 18 |
|
| 19 |
def fn(pipeline_type, filename):
|
| 20 |
print("Step 0. Video has been uploaded.")
|
| 21 |
-
os.system(command_string)
|
| 22 |
selected_pipeline_instance = pipelines[pipeline_type]
|
| 23 |
print("Step 1. Video has been converted.")
|
| 24 |
landmarks = selected_pipeline_instance.process_landmarks(filename, landmarks_filename=None)
|
|
@@ -70,4 +62,4 @@ with demo:
|
|
| 70 |
"""
|
| 71 |
)
|
| 72 |
|
| 73 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
|
|
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
from pipelines.pipeline import InferencePipeline
|
| 4 |
|
|
|
|
| 11 |
|
| 12 |
def fn(pipeline_type, filename):
|
| 13 |
print("Step 0. Video has been uploaded.")
|
|
|
|
| 14 |
selected_pipeline_instance = pipelines[pipeline_type]
|
| 15 |
print("Step 1. Video has been converted.")
|
| 16 |
landmarks = selected_pipeline_instance.process_landmarks(filename, landmarks_filename=None)
|
|
|
|
| 62 |
"""
|
| 63 |
)
|
| 64 |
|
| 65 |
+
demo.launch()
|