Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
from lumaai import LumaAI
|
3 |
import requests
|
4 |
import os
|
5 |
import time
|
@@ -136,8 +136,9 @@ with gr.Blocks() as demo:
|
|
136 |
camera_motion = gr.Dropdown(
|
137 |
["pan", "tilt", "zoom", "orbit"],
|
138 |
label="Camera Motion",
|
139 |
-
|
140 |
-
|
|
|
141 |
)
|
142 |
advanced_generate_btn = gr.Button("Generate with Advanced Options")
|
143 |
|
|
|
1 |
import gradio as gr
|
2 |
+
from lumaai.client import LumaAI # Adjusted import path
|
3 |
import requests
|
4 |
import os
|
5 |
import time
|
|
|
136 |
camera_motion = gr.Dropdown(
|
137 |
["pan", "tilt", "zoom", "orbit"],
|
138 |
label="Camera Motion",
|
139 |
+
choices=["pan", "tilt", "zoom", "orbit"], # Ensure choices are correctly passed
|
140 |
+
value=None,
|
141 |
+
allow_none=True
|
142 |
)
|
143 |
advanced_generate_btn = gr.Button("Generate with Advanced Options")
|
144 |
|