Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -389,15 +389,15 @@ def process_input(text, image):
|
|
| 389 |
# Define example data with corrected syntax
|
| 390 |
examples = [
|
| 391 |
{
|
| 392 |
-
"text": "From 0 to 1 seconds, the camera rapidly descends. From 1 to 3 seconds, the camera slowly moves to the
|
| 393 |
"image": "cake.png",
|
| 394 |
"json": json.dumps({
|
| 395 |
"1": [
|
| 396 |
{"starttime": 0.0, "endtime": 1.0, "speed": "high", "direction": "down", "rotate": "0"},
|
| 397 |
-
{"starttime": 1.0, "endtime": 3.0, "speed": "low", "direction": "
|
| 398 |
]
|
| 399 |
}, indent=4),
|
| 400 |
-
"video": "
|
| 401 |
}
|
| 402 |
]
|
| 403 |
|
|
|
|
| 389 |
# Define example data with corrected syntax
|
| 390 |
examples = [
|
| 391 |
{
|
| 392 |
+
"text": "From 0 to 1 seconds, the camera rapidly descends. From 1 to 3 seconds, the camera slowly moves to the left.",
|
| 393 |
"image": "cake.png",
|
| 394 |
"json": json.dumps({
|
| 395 |
"1": [
|
| 396 |
{"starttime": 0.0, "endtime": 1.0, "speed": "high", "direction": "down", "rotate": "0"},
|
| 397 |
+
{"starttime": 1.0, "endtime": 3.0, "speed": "low", "direction": "left", "rotate": "0"}
|
| 398 |
]
|
| 399 |
}, indent=4),
|
| 400 |
+
"video": "cake.mp4"
|
| 401 |
}
|
| 402 |
]
|
| 403 |
|