Spaces:
Runtime error
Runtime error
Alexander Fengler
commited on
Commit
•
50ba4a7
1
Parent(s):
037f9a9
still no luck
Browse files
app.py
CHANGED
@@ -154,12 +154,15 @@ def process_video(input_video, out_fps = 'auto', skip_frames = 7):
|
|
154 |
with gr.Blocks(theme=theme) as demo:
|
155 |
with gr.Row().style(equal_height=True,height='50%'):
|
156 |
input_video = gr.Video(label="Input")
|
157 |
-
processed_frames = gr.Image(label="Shark Engine")
|
158 |
output_video = gr.Video(label="Output Video")
|
|
|
|
|
|
|
159 |
dashboard = gr.Image(label="Dashboard")
|
|
|
160 |
|
161 |
-
with gr.Row(height='100%',width='100%'):
|
162 |
-
original_frames = gr.Image(label="Original Frame", width='100%', height='100%')
|
163 |
|
164 |
with gr.Row():
|
165 |
paths = sorted(pathlib.Path('videos_example/').rglob('*.mp4'))
|
@@ -171,6 +174,6 @@ with gr.Blocks(theme=theme) as demo:
|
|
171 |
|
172 |
demo.queue()
|
173 |
if os.getenv('SYSTEM') == 'spaces':
|
174 |
-
demo.launch(width='40%',auth=(os.environ.get('SHARK_USERNAME'), os.environ.get('SHARK_PASSWORD')))
|
175 |
else:
|
176 |
-
demo.launch()
|
|
|
154 |
with gr.Blocks(theme=theme) as demo:
|
155 |
with gr.Row().style(equal_height=True,height='50%'):
|
156 |
input_video = gr.Video(label="Input")
|
|
|
157 |
output_video = gr.Video(label="Output Video")
|
158 |
+
|
159 |
+
with gr.Row():
|
160 |
+
processed_frames = gr.Image(label="Shark Engine")
|
161 |
dashboard = gr.Image(label="Dashboard")
|
162 |
+
original_frames = gr.Image(label="Original Frame") #, width='100%', height='100%')
|
163 |
|
164 |
+
#with gr.Row(height='100%',width='100%'):
|
165 |
+
#original_frames = gr.Image(label="Original Frame", width='100%', height='100%')
|
166 |
|
167 |
with gr.Row():
|
168 |
paths = sorted(pathlib.Path('videos_example/').rglob('*.mp4'))
|
|
|
174 |
|
175 |
demo.queue()
|
176 |
if os.getenv('SYSTEM') == 'spaces':
|
177 |
+
demo.launch(width='40%',auth=(os.environ.get('SHARK_USERNAME'), os.environ.get('SHARK_PASSWORD')), debug = True)
|
178 |
else:
|
179 |
+
demo.launch(debug = True)
|