Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,8 +122,23 @@ def main():
|
|
| 122 |
inputs=[prompt_text],
|
| 123 |
outputs=output_video
|
| 124 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
|
| 126 |
-
demo.launch()
|
| 127 |
|
| 128 |
if __name__ == "__main__":
|
| 129 |
main()
|
|
|
|
| 122 |
inputs=[prompt_text],
|
| 123 |
outputs=output_video
|
| 124 |
)
|
| 125 |
+
gr.Examples(
|
| 126 |
+
examples=[
|
| 127 |
+
[
|
| 128 |
+
"A serene night scene in a forested area. [...] The video is a time-lapse, capturing the transition from day to night, with the lake and forest serving as a constant backdrop."
|
| 129 |
+
],
|
| 130 |
+
[
|
| 131 |
+
"A soaring drone footage captures the majestic beauty of a coastal cliff, [...] The water gently laps at the rock base and the greenery that clings to the top of the cliff."
|
| 132 |
+
],
|
| 133 |
+
|
| 134 |
+
],
|
| 135 |
+
fn=run_inference,
|
| 136 |
+
inputs=[prompt_text],
|
| 137 |
+
outputs=[output_video],
|
| 138 |
+
cache_examples=True,
|
| 139 |
+
)
|
| 140 |
|
| 141 |
+
demo.launch(debug=True)
|
| 142 |
|
| 143 |
if __name__ == "__main__":
|
| 144 |
main()
|