CoolFace
Apppublic

Huzaif231/Video-Generator-AI

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
0likes
app.py48 linesDownload Raw Back to root
1import streamlit as st2import time3 4# कस्टम डिज़ाइन (CSS)5st.markdown("""6<style>7    .stTextInput > div > div > input {8        border-radius: 15px;9        padding: 10px 15px;10        border: 2px solid #4A90E2;11    }12    .stButton > button {13        border-radius: 15px;14        width: 100%;15        background-color: #4A90E2;16        color: white;17        font-weight: bold;18        padding: 10px;19        transition: 0.3s;20    }21    .stButton > button:hover {22        background-color: #357ABD;23        color: white;24    }25</style>26""", unsafe_allow_html=True)27 28# हेडिंग और टाइटल29st.title("🎬 AI Video Generator")30st.markdown("### शानदार वीडियो बनाएं, बस एक प्रॉम्प्ट से! (Higgsfield Style)")31 32# प्रॉम्प्ट बॉक्स 33user_prompt = st.text_input("अपना विज़न यहाँ लिखें...", placeholder="जैसे: A futuristic cyberpunk city in rain, cinematic lighting...")34 35# जेनरेट बटन36if st.button("✨ Generate Video"):37    if user_prompt:38        # लोडिंग एनीमेशन39        with st.spinner("AI आपके प्रॉम्प्ट पर काम कर रहा है... कृपया प्रतीक्षा करें ⏳"):40            time.sleep(3) 41            st.success("वीडियो सफलतापूर्वक तैयार हो गई है! 🎉")42            43            # वीडियो प्लेयर 44            sample_video_url = "https://www.w3schools.com/html/mov_bbb.mp4"45            st.video(sample_video_url)46    else:47        st.warning("⚠️ कृपया वीडियो बनाने के लिए पहले कोई प्रॉम्प्ट लिखें!")48