Spaces:
Runtime error
Runtime error
Commit
·
a530f12
1
Parent(s):
91cea0c
Update app.py
Browse files
app.py
CHANGED
@@ -201,8 +201,7 @@ def inference(video, lang, full_scan, number_filter, use_trocr, time_step, perio
|
|
201 |
|
202 |
# generate the plot of temporal profile
|
203 |
plot_fig = plot_temporal_profile(temporal_profiles)
|
204 |
-
|
205 |
-
return output, plot_fig, df
|
206 |
|
207 |
|
208 |
title = '🖼️Video to Multilingual OCR👁️Gradio'
|
@@ -241,7 +240,7 @@ gr.Interface(
|
|
241 |
[
|
242 |
gr.outputs.Video(label='Output Video'),
|
243 |
gr.outputs.Image(label='Output Preview', type='numpy'),
|
244 |
-
|
245 |
gr.outputs.Dataframe(headers=['Box', 'Time (s)', 'Text'], type='pandas', max_rows=15)
|
246 |
],
|
247 |
title=title,
|
|
|
201 |
|
202 |
# generate the plot of temporal profile
|
203 |
plot_fig = plot_temporal_profile(temporal_profiles)
|
204 |
+
return output, im, plot_fig, df
|
|
|
205 |
|
206 |
|
207 |
title = '🖼️Video to Multilingual OCR👁️Gradio'
|
|
|
240 |
[
|
241 |
gr.outputs.Video(label='Output Video'),
|
242 |
gr.outputs.Image(label='Output Preview', type='numpy'),
|
243 |
+
gr.outputs.Plot(label='Temporal Profile'),
|
244 |
gr.outputs.Dataframe(headers=['Box', 'Time (s)', 'Text'], type='pandas', max_rows=15)
|
245 |
],
|
246 |
title=title,
|