Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,27 +10,8 @@ st.markdown(
|
|
| 10 |
|
| 11 |
st.markdown("<p style='text-align: center;'>Leave a Like if it works for you! ❤️</p>", unsafe_allow_html=True)
|
| 12 |
|
| 13 |
-
# Example Section - Placed before the input box
|
| 14 |
-
st.markdown("### 🔥 See How It Works (Example)")
|
| 15 |
-
|
| 16 |
-
# Example video (Replace 'crow_example.mp4' with your actual file path or URL)
|
| 17 |
-
example_video_path = "crow_example.mp4" # Change to your actual video file
|
| 18 |
-
st.video(example_video_path)
|
| 19 |
-
|
| 20 |
-
# Example script in an expandable section
|
| 21 |
-
with st.expander("📜 View Example Script"):
|
| 22 |
-
st.markdown("""
|
| 23 |
-
**Title:** Thirsty Crow (yep, the simplest example I came up with)
|
| 24 |
-
**Script:**
|
| 25 |
-
One hot summer day, a thirsty crow was flying in search of water. He looked everywhere, but he couldn't find a single drop. Tired and exhausted, he finally spotted a clay pot with a little water at the bottom.
|
| 26 |
-
|
| 27 |
-
The crow tried to reach the water, but his beak couldn’t go deep enough. He thought hard and came up with a clever idea. He picked up small pebbles one by one and dropped them into the pot. With each pebble, the water level slowly rose higher and higher.
|
| 28 |
-
|
| 29 |
-
Finally, after many pebbles, the water reached the top. The crow happily drank the water and flew away, refreshed and satisfied
|
| 30 |
-
""")
|
| 31 |
|
| 32 |
# Text input box with a max of 1500 characters
|
| 33 |
-
st.markdown("### ✍️ Create Your Own Video")
|
| 34 |
text_script = st.text_area("Enter your script/story (max 1500 characters):", max_chars=1500)
|
| 35 |
|
| 36 |
# Initialize the client with the hosted model
|
|
@@ -57,3 +38,25 @@ if st.button("Generate Video"):
|
|
| 57 |
|
| 58 |
else:
|
| 59 |
st.warning("Please enter some text to generate prompts.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
st.markdown("<p style='text-align: center;'>Leave a Like if it works for you! ❤️</p>", unsafe_allow_html=True)
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# Text input box with a max of 1500 characters
|
|
|
|
| 15 |
text_script = st.text_area("Enter your script/story (max 1500 characters):", max_chars=1500)
|
| 16 |
|
| 17 |
# Initialize the client with the hosted model
|
|
|
|
| 38 |
|
| 39 |
else:
|
| 40 |
st.warning("Please enter some text to generate prompts.")
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
st.markdown("### 🔥 See How It Works (Example)")
|
| 46 |
+
|
| 47 |
+
# Example video (Replace 'crow_example.mp4' with your actual file path or URL)
|
| 48 |
+
example_video_path = "crow_example.mp4" # Change to your actual video file
|
| 49 |
+
st.video(example_video_path)
|
| 50 |
+
|
| 51 |
+
# Example script in an expandable section
|
| 52 |
+
with st.expander("📜 View Example Script"):
|
| 53 |
+
st.markdown("""
|
| 54 |
+
**Title:** Thirsty Crow (yep, the simplest example I came up with)
|
| 55 |
+
**Script:**
|
| 56 |
+
One hot summer day, a thirsty crow was flying in search of water. He looked everywhere, but he couldn't find a single drop. Tired and exhausted, he finally spotted a clay pot with a little water at the bottom.
|
| 57 |
+
|
| 58 |
+
The crow tried to reach the water, but his beak couldn’t go deep enough. He thought hard and came up with a clever idea. He picked up small pebbles one by one and dropped them into the pot. With each pebble, the water level slowly rose higher and higher.
|
| 59 |
+
|
| 60 |
+
Finally, after many pebbles, the water reached the top. The crow happily drank the water and flew away, refreshed and satisfied
|
| 61 |
+
""")
|
| 62 |
+
|