Spaces:
Sleeping
Sleeping
Update app.py
#1
by ritesh1girawale - opened
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def generate_video(prompt, oauth_token: gr.OAuthToken | None = None):
|
|
| 18 |
if oauth_token is None:
|
| 19 |
raise gr.Error("Please sign in with your Hugging Face account first.")
|
| 20 |
if not prompt or not prompt.strip():
|
| 21 |
-
raise gr.Error("
|
| 22 |
|
| 23 |
client = InferenceClient(provider=PROVIDER, token=oauth_token.token)
|
| 24 |
video_bytes = client.text_to_video(prompt, model=MODEL_ID)
|
|
|
|
| 18 |
if oauth_token is None:
|
| 19 |
raise gr.Error("Please sign in with your Hugging Face account first.")
|
| 20 |
if not prompt or not prompt.strip():
|
| 21 |
+
raise gr.Error("A cinematic drone shot of a majestic tiger walking through a misty jungle at sunrise, ultra realistic, 4K, dramatic lighting, smooth camera movement.")
|
| 22 |
|
| 23 |
client = InferenceClient(provider=PROVIDER, token=oauth_token.token)
|
| 24 |
video_bytes = client.text_to_video(prompt, model=MODEL_ID)
|