Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def _save_bytes_as_temp_mp4(data: bytes) -> str:
|
|
| 45 |
finally:
|
| 46 |
temp_file.close()
|
| 47 |
|
| 48 |
-
def generate_video_with_auth(image, prompt, token: gr.OAuthToken | None, progress=gr.Progress()):
|
| 49 |
"""
|
| 50 |
Generate a video from an image using the Ovi model with authentication check.
|
| 51 |
|
|
@@ -53,6 +53,7 @@ def generate_video_with_auth(image, prompt, token: gr.OAuthToken | None, progres
|
|
| 53 |
image: Input image (PIL Image or file path)
|
| 54 |
prompt: Text prompt describing the desired motion/animation
|
| 55 |
token: OAuth token for authentication
|
|
|
|
| 56 |
progress: Gradio progress tracker
|
| 57 |
|
| 58 |
Returns:
|
|
|
|
| 45 |
finally:
|
| 46 |
temp_file.close()
|
| 47 |
|
| 48 |
+
def generate_video_with_auth(image, prompt, token: gr.OAuthToken | None, *args, progress=gr.Progress()):
|
| 49 |
"""
|
| 50 |
Generate a video from an image using the Ovi model with authentication check.
|
| 51 |
|
|
|
|
| 53 |
image: Input image (PIL Image or file path)
|
| 54 |
prompt: Text prompt describing the desired motion/animation
|
| 55 |
token: OAuth token for authentication
|
| 56 |
+
*args: Additional arguments from Gradio
|
| 57 |
progress: Gradio progress tracker
|
| 58 |
|
| 59 |
Returns:
|