Spaces:
Runtime error
Runtime error
fix: gradio 5.23 + drop HfFolder dep
Browse files
app.py
CHANGED
|
@@ -120,11 +120,12 @@ with gr.Blocks(
|
|
| 120 |
with gr.Column(scale=1):
|
| 121 |
vid = gr.Video(label="Upload Video", height=280)
|
| 122 |
btn = gr.Button("🔍 Analyze", variant="primary", size="lg")
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
|
|
|
| 128 |
|
| 129 |
with gr.Column(scale=2):
|
| 130 |
verdict_out = gr.Markdown(label="Verdict", elem_classes=["verdict-box"])
|
|
|
|
| 120 |
with gr.Column(scale=1):
|
| 121 |
vid = gr.Video(label="Upload Video", height=280)
|
| 122 |
btn = gr.Button("🔍 Analyze", variant="primary", size="lg")
|
| 123 |
+
if os.path.exists("test_assets/real_sample.mp4"):
|
| 124 |
+
gr.Examples(
|
| 125 |
+
examples=[["test_assets/real_sample.mp4"], ["test_assets/fake_sample.mp4"]],
|
| 126 |
+
inputs=[vid],
|
| 127 |
+
label="Try sample videos",
|
| 128 |
+
)
|
| 129 |
|
| 130 |
with gr.Column(scale=2):
|
| 131 |
verdict_out = gr.Markdown(label="Verdict", elem_classes=["verdict-box"])
|