Spaces:
Runtime error
Runtime error
stupidog04
commited on
Commit
•
91cea0c
1
Parent(s):
ddb4ddb
Update app.py
Browse files
app.py
CHANGED
@@ -201,7 +201,8 @@ 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 |
-
return output, im, plot_fig, df
|
|
|
205 |
|
206 |
|
207 |
title = '🖼️Video to Multilingual OCR👁️Gradio'
|
@@ -240,7 +241,7 @@ gr.Interface(
|
|
240 |
[
|
241 |
gr.outputs.Video(label='Output Video'),
|
242 |
gr.outputs.Image(label='Output Preview', type='numpy'),
|
243 |
-
gr.Plot(label='Temporal Profile'),
|
244 |
gr.outputs.Dataframe(headers=['Box', 'Time (s)', 'Text'], type='pandas', max_rows=15)
|
245 |
],
|
246 |
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 |
+
return output, plot_fig, df
|
206 |
|
207 |
|
208 |
title = '🖼️Video to Multilingual OCR👁️Gradio'
|
|
|
241 |
[
|
242 |
gr.outputs.Video(label='Output Video'),
|
243 |
gr.outputs.Image(label='Output Preview', type='numpy'),
|
244 |
+
# gr.Plot(label='Temporal Profile'),
|
245 |
gr.outputs.Dataframe(headers=['Box', 'Time (s)', 'Text'], type='pandas', max_rows=15)
|
246 |
],
|
247 |
title=title,
|