Monarth commited on
Commit
d4dfa7e
·
verified ·
1 Parent(s): f94cca3

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +89 -19
index.html CHANGED
@@ -1,19 +1,89 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title> Motif-Video 2B Generator Portal</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
9
+ </head>
10
+ <body>
11
+
12
+ <div class="parallax-bg"></div>
13
+
14
+ <div id="cursor-trail"></div>
15
+
16
+ <div class="app-container">
17
+
18
+ <header class="title-bar">
19
+ <span class="icon">🎬</span>
20
+ <h1>Motif-Video Creator</h1>
21
+ <button id="show-guide" class="pastel-btn">Connection Guide</button>
22
+ </header>
23
+
24
+ <div class="content-wrapper">
25
+
26
+ <nav class="sidebar">
27
+ <button class="nav-item active" data-target="t2v-section"><span class="icon">✏️</span> Text ➔ Video</button>
28
+ <button class="nav-item" data-target="i2v-section"><span class="icon">🖼️</span> Image ➔ Video</button>
29
+ <button class="nav-item" data-target="about-section"><span class="icon">ℹ️</span> About</button>
30
+ </nav>
31
+
32
+ <main class="main-content">
33
+
34
+ <section id="t2v-section" class="active-section">
35
+ <h2>Text to Video</h2>
36
+ <textarea id="t2v-prompt" placeholder="Describe your masterpiece... e.g., A futuristic city built from giant pastel crystals..."></textarea>
37
+ <button class="generate-btn action-btn">Generate</button>
38
+ </section>
39
+
40
+ <section id="i2v-section">
41
+ <h2>Image to Video</h2>
42
+ <div class="file-input-wrapper action-btn">
43
+ <span>Upload Base Image</span>
44
+ <input type="file" id="i2v-image" accept="image/*">
45
+ </div>
46
+ <textarea id="i2v-prompt" placeholder="Describe the motion: e.g., 'The waves gently lap the shore'"></textarea>
47
+ <button class="generate-btn action-btn">Generate</button>
48
+ </section>
49
+
50
+ <section id="about-section">
51
+ <h2>About the Portal</h2>
52
+ <p>Welcome! This is an aesthetic frontend interface for the powerful **Motif-Video 2B** model.</p>
53
+ <p>To keep generation **unlimited and free**, this portal *must connect* to your own powerful backend (GPU).</p>
54
+ <p>Model by Motif Technologies (released under Apache 2.0).</p>
55
+ </section>
56
+
57
+ <div class="preview-panel">
58
+ <h3>Preview</h3>
59
+ <div id="video-output" class="animated-frame">
60
+ <span class="placeholder-text">Generated video will appear here.</span>
61
+ </div>
62
+ </div>
63
+
64
+ </main>
65
+ </div>
66
+ </div>
67
+
68
+ <div id="guide-modal" class="modal-overlay">
69
+ <div class="modal-content cartoonish-swell">
70
+ <header class="modal-header">
71
+ <h3>🛠️ Setup & Connection Guide</h3>
72
+ <button class="close-modal">×</button>
73
+ </header>
74
+ <div class="modal-body">
75
+ <p>This frontend is free, but **generating video requires an intensive backend (GPU)**.</p>
76
+ <p>To use this portal unlimited times, you must connect it to a running instance of Motif-Video 2B.</p>
77
+ <div class="guide-steps">
78
+ <div class="step"><span class="step-num">1</span> <p><strong>Run Locally (Free/Unlimited)</strong><br>Own a GPU (RTX 3090/4090)? Install the environment and run the code provided at the model page: <a href="https://huggingface.co/Motif-Technologies/Motif-Video-2B" target="_blank">Motif-Video-2B</a>.</p></div>
79
+ <div class="step"><span class="step-num">2</span> <p><strong>Enter API Address</strong><br>Paste your running local API address below (e.g., Gradio/FastAPI link).</p></div>
80
+ <input type="text" id="api-url" placeholder="http://127.0.0.1:7860">
81
+ </div>
82
+ <button id="save-connection" class="save-btn action-btn">Connect & Save</button>
83
+ </div>
84
+ </div>
85
+ </div>
86
+
87
+ <script src="script.js"></script>
88
+ </body>
89
+ </html>