Spaces:
Runtime error
Runtime error
frames
Browse files
app.py
CHANGED
|
@@ -105,8 +105,8 @@ bokeh_examples = [
|
|
| 105 |
]
|
| 106 |
|
| 107 |
focal_examples = [
|
| 108 |
-
["A small office cubicle with a desk.", "[
|
| 109 |
-
["A large white couch in a living room.", "[
|
| 110 |
]
|
| 111 |
|
| 112 |
shutter_examples = [
|
|
@@ -130,9 +130,9 @@ with gr.Blocks(title="Generative Photography") as demo:
|
|
| 130 |
with gr.Column():
|
| 131 |
scene_input_bokeh = gr.Textbox(label="Scene Description", placeholder="Describe the scene you want to generate...")
|
| 132 |
bokeh_input = gr.Textbox(label="Bokeh Blur Values", placeholder="Enter 5 comma-separated values from 1-30, e.g., [2.44, 8.3, 10.1, 17.2, 24.0]")
|
| 133 |
-
submit_bokeh = gr.Button("Generate
|
| 134 |
with gr.Column():
|
| 135 |
-
video_output_bokeh = gr.Video(label="Generated
|
| 136 |
gr.Examples(bokeh_examples, [scene_input_bokeh, bokeh_input], [video_output_bokeh], generate_bokeh_video)
|
| 137 |
submit_bokeh.click(generate_bokeh_video, [scene_input_bokeh, bokeh_input], [video_output_bokeh])
|
| 138 |
|
|
@@ -142,9 +142,9 @@ with gr.Blocks(title="Generative Photography") as demo:
|
|
| 142 |
with gr.Column():
|
| 143 |
scene_input_focal = gr.Textbox(label="Scene Description", placeholder="Describe the scene you want to generate...")
|
| 144 |
focal_input = gr.Textbox(label="Focal Length Values", placeholder="Enter 5 comma-separated values from 24-70, e.g., [25.1, 30.2, 33.3, 40.8, 54.0]")
|
| 145 |
-
submit_focal = gr.Button("Generate
|
| 146 |
with gr.Column():
|
| 147 |
-
video_output_focal = gr.Video(label="Generated
|
| 148 |
gr.Examples(focal_examples, [scene_input_focal, focal_input], [video_output_focal], generate_focal_video)
|
| 149 |
submit_focal.click(generate_focal_video, [scene_input_focal, focal_input], [video_output_focal])
|
| 150 |
|
|
@@ -154,9 +154,9 @@ with gr.Blocks(title="Generative Photography") as demo:
|
|
| 154 |
with gr.Column():
|
| 155 |
scene_input_shutter = gr.Textbox(label="Scene Description", placeholder="Describe the scene you want to generate...")
|
| 156 |
shutter_input = gr.Textbox(label="Shutter Speed Values", placeholder="Enter 5 comma-separated values from 0.1-1.0, e.g., [0.15, 0.32, 0.53, 0.62, 0.82]")
|
| 157 |
-
submit_shutter = gr.Button("Generate
|
| 158 |
with gr.Column():
|
| 159 |
-
video_output_shutter = gr.Video(label="Generated
|
| 160 |
gr.Examples(shutter_examples, [scene_input_shutter, shutter_input], [video_output_shutter], generate_shutter_video)
|
| 161 |
submit_shutter.click(generate_shutter_video, [scene_input_shutter, shutter_input], [video_output_shutter])
|
| 162 |
|
|
@@ -166,9 +166,9 @@ with gr.Blocks(title="Generative Photography") as demo:
|
|
| 166 |
with gr.Column():
|
| 167 |
scene_input_color = gr.Textbox(label="Scene Description", placeholder="Describe the scene you want to generate...")
|
| 168 |
color_input = gr.Textbox(label="Color Temperature Values", placeholder="Enter 5 comma-separated values from 2000-10000, e.g., [3001.3, 4000.2, 4400.34, 5488.23, 8888.82]")
|
| 169 |
-
submit_color = gr.Button("Generate
|
| 170 |
with gr.Column():
|
| 171 |
-
video_output_color = gr.Video(label="Generated
|
| 172 |
gr.Examples(color_examples, [scene_input_color, color_input], [video_output_color], generate_color_video)
|
| 173 |
submit_color.click(generate_color_video, [scene_input_color, color_input], [video_output_color])
|
| 174 |
|
|
|
|
| 105 |
]
|
| 106 |
|
| 107 |
focal_examples = [
|
| 108 |
+
["A small office cubicle with a desk.", "[26.1, 35.0, 47.1, 58.1, 69.1]"],
|
| 109 |
+
["A large white couch in a living room.", "[54.0, 46.0, 37.0, 28.0, 25.0]"]
|
| 110 |
]
|
| 111 |
|
| 112 |
shutter_examples = [
|
|
|
|
| 130 |
with gr.Column():
|
| 131 |
scene_input_bokeh = gr.Textbox(label="Scene Description", placeholder="Describe the scene you want to generate...")
|
| 132 |
bokeh_input = gr.Textbox(label="Bokeh Blur Values", placeholder="Enter 5 comma-separated values from 1-30, e.g., [2.44, 8.3, 10.1, 17.2, 24.0]")
|
| 133 |
+
submit_bokeh = gr.Button("Generate Frames")
|
| 134 |
with gr.Column():
|
| 135 |
+
video_output_bokeh = gr.Video(label="Generated Frames")
|
| 136 |
gr.Examples(bokeh_examples, [scene_input_bokeh, bokeh_input], [video_output_bokeh], generate_bokeh_video)
|
| 137 |
submit_bokeh.click(generate_bokeh_video, [scene_input_bokeh, bokeh_input], [video_output_bokeh])
|
| 138 |
|
|
|
|
| 142 |
with gr.Column():
|
| 143 |
scene_input_focal = gr.Textbox(label="Scene Description", placeholder="Describe the scene you want to generate...")
|
| 144 |
focal_input = gr.Textbox(label="Focal Length Values", placeholder="Enter 5 comma-separated values from 24-70, e.g., [25.1, 30.2, 33.3, 40.8, 54.0]")
|
| 145 |
+
submit_focal = gr.Button("Generate Frames")
|
| 146 |
with gr.Column():
|
| 147 |
+
video_output_focal = gr.Video(label="Generated Frames")
|
| 148 |
gr.Examples(focal_examples, [scene_input_focal, focal_input], [video_output_focal], generate_focal_video)
|
| 149 |
submit_focal.click(generate_focal_video, [scene_input_focal, focal_input], [video_output_focal])
|
| 150 |
|
|
|
|
| 154 |
with gr.Column():
|
| 155 |
scene_input_shutter = gr.Textbox(label="Scene Description", placeholder="Describe the scene you want to generate...")
|
| 156 |
shutter_input = gr.Textbox(label="Shutter Speed Values", placeholder="Enter 5 comma-separated values from 0.1-1.0, e.g., [0.15, 0.32, 0.53, 0.62, 0.82]")
|
| 157 |
+
submit_shutter = gr.Button("Generate Frames")
|
| 158 |
with gr.Column():
|
| 159 |
+
video_output_shutter = gr.Video(label="Generated Frames")
|
| 160 |
gr.Examples(shutter_examples, [scene_input_shutter, shutter_input], [video_output_shutter], generate_shutter_video)
|
| 161 |
submit_shutter.click(generate_shutter_video, [scene_input_shutter, shutter_input], [video_output_shutter])
|
| 162 |
|
|
|
|
| 166 |
with gr.Column():
|
| 167 |
scene_input_color = gr.Textbox(label="Scene Description", placeholder="Describe the scene you want to generate...")
|
| 168 |
color_input = gr.Textbox(label="Color Temperature Values", placeholder="Enter 5 comma-separated values from 2000-10000, e.g., [3001.3, 4000.2, 4400.34, 5488.23, 8888.82]")
|
| 169 |
+
submit_color = gr.Button("Generate Frames")
|
| 170 |
with gr.Column():
|
| 171 |
+
video_output_color = gr.Video(label="Generated Frames")
|
| 172 |
gr.Examples(color_examples, [scene_input_color, color_input], [video_output_color], generate_color_video)
|
| 173 |
submit_color.click(generate_color_video, [scene_input_color, color_input], [video_output_color])
|
| 174 |
|