ginipick commited on
Commit
bfb51e0
·
verified ·
1 Parent(s): a8b22a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -25,8 +25,8 @@ except ImportError:
25
  print("Warning: cv2 not available. Watermark feature will be disabled.")
26
 
27
  # API keys setup from environment variables
28
- API_KEY_T2V = os.getenv("WS_API_KEY_T2V", "946b77acd6a456dfde349aa0bac7b6d2bdf9c0c995fff072898c6d8734f866c4")
29
- API_KEY_I2V = os.getenv("WS_API_KEY_I2V", "5a90eaa7ded95066c07adf55b91185a83abfa8db3fdc74d12ba5ad66db1d68fe")
30
 
31
  # API endpoints
32
  API_BASE_URL = "https://api.wavespeed.ai/api/v3"
@@ -350,8 +350,8 @@ with gr.Blocks(title="Bytedance Seedance Video Free", theme=gr.themes.Soft()) as
350
  with gr.Accordion("⚙️ API Settings", open=False):
351
  gr.Markdown("""
352
  API keys are loaded from environment variables:
353
- - `WAVESPEED_API_KEY_T2V` for Text-to-Video
354
- - `WAVESPEED_API_KEY_I2V` for Image-to-Video
355
 
356
  You can override them below if needed.
357
  """)
@@ -387,9 +387,8 @@ with gr.Blocks(title="Bytedance Seedance Video Free", theme=gr.themes.Soft()) as
387
  )
388
  gr.Markdown("**OR**")
389
  image_file_input = gr.Image(
390
- label="📤 Upload Image (Beta)",
391
- type="pil",
392
- info="Note: Uploaded images will be converted to data URL (may not work with all APIs)"
393
  )
394
 
395
  # Aspect ratio (only for T2V)
@@ -463,8 +462,8 @@ with gr.Blocks(title="Bytedance Seedance Video Free", theme=gr.themes.Soft()) as
463
 
464
  3. **Set environment variables**:
465
  ```bash
466
- export WAVESPEED_API_KEY_T2V="your-t2v-api-key"
467
- export WAVESPEED_API_KEY_I2V="your-i2v-api-key"
468
  ```
469
 
470
  4. **Run**:
 
25
  print("Warning: cv2 not available. Watermark feature will be disabled.")
26
 
27
  # API keys setup from environment variables
28
+ API_KEY_T2V = os.getenv("WAVESPEED_API_KEY_T2V", "946b77acd6a456dfde349aa0bac7b6d2bdf9c0c995fff072898c6d8734f866c4")
29
+ API_KEY_I2V = os.getenv("WAVESPEED_API_KEY_I2V", "5a90eaa7ded95066c07adf55b91185a83abfa8db3fdc74d12ba5ad66db1d68fe")
30
 
31
  # API endpoints
32
  API_BASE_URL = "https://api.wavespeed.ai/api/v3"
 
350
  with gr.Accordion("⚙️ API Settings", open=False):
351
  gr.Markdown("""
352
  API keys are loaded from environment variables:
353
+ - `WS_API_KEY_T2V` for Text-to-Video
354
+ - `WS_API_KEY_I2V` for Image-to-Video
355
 
356
  You can override them below if needed.
357
  """)
 
387
  )
388
  gr.Markdown("**OR**")
389
  image_file_input = gr.Image(
390
+ label="📤 Upload Image (Beta) - Converted to data URL (may not work)",
391
+ type="pil"
 
392
  )
393
 
394
  # Aspect ratio (only for T2V)
 
462
 
463
  3. **Set environment variables**:
464
  ```bash
465
+ export WS_API_KEY_T2V="your-t2v-api-key"
466
+ export WS_API_KEY_I2V="your-i2v-api-key"
467
  ```
468
 
469
  4. **Run**: