Drizzy0101 commited on
Commit
47510fa
·
1 Parent(s): f455320
Files changed (1) hide show
  1. index.html +50 -5
index.html CHANGED
@@ -38,11 +38,49 @@ keeps flowing without the window-shift burst. Type a style prompt, click <b>Star
38
  for ~60s. <b>Change the prompt anytime</b> &mdash; it updates the live stream.
39
  </p>
40
 
41
- <div class="controls">
42
- <input id="instruction" type="text" placeholder="style prompt · e.g. psychedelic neon dream · van gogh · cyberpunk city" />
43
- <button id="startBtn">▶ Start session</button>
44
- <span id="timer" class="timer">⏱ <span id="count">58</span>s</span>
45
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  <div class="grid">
48
  <div class="card">
@@ -59,7 +97,14 @@ for ~60s. <b>Change the prompt anytime</b> &mdash; it updates the live stream.
59
  </div>
60
 
61
  <canvas id="grab" width="640" height="360" style="display:none"></canvas>
 
 
 
62
 
 
 
 
 
63
  <script type="module">
64
  import { Client } from "https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js";
65
 
 
38
  for ~60s. <b>Change the prompt anytime</b> &mdash; it updates the live stream.
39
  </p>
40
 
41
+ <div class="controls">
42
+
43
+ <select id="promptSelect">
44
+ <option value="">🎨 Choose a style preset...</option>
45
+ <option value="A cinematic cyberpunk city at night, neon lights reflecting on wet streets, futuristic atmosphere, ultra detailed, realistic">
46
+ 🌃 Cyberpunk City
47
+ </option>
48
+ <option value="Transform the webcam into a dark futuristic AI world, glowing purple and blue energy, cybernetic effects, high detail, cinematic lighting">
49
+ 🔮 Dark AI World
50
+ </option>
51
+ <option value="Turn the webcam view into a Studio Ghibli inspired animated world, soft colors, magical atmosphere, detailed environment">
52
+ 🌿 Animated Fantasy
53
+ </option>
54
+ <option value="Make the webcam look like a futuristic hologram transmission, digital particles, sci-fi interface overlays, glowing blue energy">
55
+ 🌀 Hologram Transmission
56
+ </option>
57
+ <option value="Transform the webcam into a realistic fantasy world, ancient ruins, magical lighting, cinematic fantasy style">
58
+ 🏰 Fantasy World
59
+ </option>
60
+ <option value="Create a glitch art version of the webcam feed, RGB distortion, digital artifacts, cyberpunk aesthetic, futuristic AI effect">
61
+ ⚡ Glitch Art
62
+ </option>
63
+ <option value="Make the webcam look like a professional movie scene, dramatic lighting, shallow depth of field, cinematic color grading">
64
+ 🎬 Cinematic Movie
65
+ </option>
66
+ <option value="Cyberpunk futuristic city, neon lighting, cinematic AI transformation, realistic details, glowing blue and purple atmosphere">
67
+ 💜 Synapse Cyberpunk
68
+ </option>
69
+ </select>
70
+
71
+ <input
72
+ id="instruction"
73
+ type="text"
74
+ placeholder="style prompt · e.g. psychedelic neon dream · van gogh · cyberpunk city"
75
+ />
76
+
77
+ <button id="startBtn">▶ Start session</button>
78
+
79
+ <span id="timer" class="timer">
80
+ ⏱ <span id="count">58</span>s
81
+ </span>
82
+
83
+ </div>
84
 
85
  <div class="grid">
86
  <div class="card">
 
97
  </div>
98
 
99
  <canvas id="grab" width="640" height="360" style="display:none"></canvas>
100
+ <script>
101
+ const promptSelect = document.getElementById("promptSelect");
102
+ const instructionInput = document.getElementById("instruction");
103
 
104
+ promptSelect.addEventListener("change", function () {
105
+ instructionInput.value = this.value;
106
+ });
107
+ </script>
108
  <script type="module">
109
  import { Client } from "https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js";
110