Spaces:
Running
Running
Update index.html
Browse files- index.html +117 -19
index.html
CHANGED
|
@@ -1,19 +1,117 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Seedance AI API</title>
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: sans-serif;
|
| 10 |
+
margin: 0;
|
| 11 |
+
background-color: #f0f0f0;
|
| 12 |
+
color: #333;
|
| 13 |
+
}
|
| 14 |
+
.container {
|
| 15 |
+
max-width: 800px;
|
| 16 |
+
margin: 40px auto;
|
| 17 |
+
padding: 20px;
|
| 18 |
+
background-color: #fff;
|
| 19 |
+
border-radius: 8px;
|
| 20 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
| 21 |
+
}
|
| 22 |
+
header {
|
| 23 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 24 |
+
color: white;
|
| 25 |
+
padding: 20px 0;
|
| 26 |
+
text-align: center;
|
| 27 |
+
border-radius: 8px 8px 0 0;
|
| 28 |
+
}
|
| 29 |
+
header h1 {
|
| 30 |
+
margin: 0;
|
| 31 |
+
font-size: 2em;
|
| 32 |
+
}
|
| 33 |
+
main {
|
| 34 |
+
padding: 20px;
|
| 35 |
+
}
|
| 36 |
+
.input-section {
|
| 37 |
+
margin-bottom: 20px;
|
| 38 |
+
}
|
| 39 |
+
.input-section label {
|
| 40 |
+
display: block;
|
| 41 |
+
margin-bottom: 8px;
|
| 42 |
+
font-weight: bold;
|
| 43 |
+
color: #555;
|
| 44 |
+
}
|
| 45 |
+
textarea {
|
| 46 |
+
width: calc(100% - 22px);
|
| 47 |
+
padding: 10px;
|
| 48 |
+
border: 1px solid #ccc;
|
| 49 |
+
border-radius: 4px;
|
| 50 |
+
min-height: 100px;
|
| 51 |
+
font-family: monospace;
|
| 52 |
+
resize: vertical;
|
| 53 |
+
}
|
| 54 |
+
button {
|
| 55 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 56 |
+
color: white;
|
| 57 |
+
padding: 10px 20px;
|
| 58 |
+
border: none;
|
| 59 |
+
border-radius: 4px;
|
| 60 |
+
cursor: pointer;
|
| 61 |
+
font-size: 1em;
|
| 62 |
+
transition: background 0.3s ease;
|
| 63 |
+
}
|
| 64 |
+
button:hover {
|
| 65 |
+
background: linear-gradient(135deg, #5a6fd0 0%, #673f8a 100%);
|
| 66 |
+
}
|
| 67 |
+
.output-section {
|
| 68 |
+
margin-top: 30px;
|
| 69 |
+
}
|
| 70 |
+
.output-section h2 {
|
| 71 |
+
color: #444;
|
| 72 |
+
border-bottom: 2px solid #eee;
|
| 73 |
+
padding-bottom: 10px;
|
| 74 |
+
margin-bottom: 15px;
|
| 75 |
+
}
|
| 76 |
+
#model-output {
|
| 77 |
+
background-color: #f9f9f9;
|
| 78 |
+
border: 1px solid #eee;
|
| 79 |
+
border-radius: 4px;
|
| 80 |
+
padding: 15px;
|
| 81 |
+
min-height: 150px;
|
| 82 |
+
white-space: pre-wrap;
|
| 83 |
+
word-wrap: break-word;
|
| 84 |
+
font-family: monospace;
|
| 85 |
+
color: #666;
|
| 86 |
+
}
|
| 87 |
+
</style>
|
| 88 |
+
</head>
|
| 89 |
+
<body>
|
| 90 |
+
<div class="container">
|
| 91 |
+
<header>
|
| 92 |
+
<h1>Seedance AI API</h1>
|
| 93 |
+
</header>
|
| 94 |
+
<main>
|
| 95 |
+
<section class="input-section">
|
| 96 |
+
<label for="model-prompt">Model Prompt:</label>
|
| 97 |
+
<textarea id="model-prompt" placeholder="Enter your prompt here..."></textarea>
|
| 98 |
+
<br><br>
|
| 99 |
+
<button onclick="generateOutput()">Generate</button>
|
| 100 |
+
</section>
|
| 101 |
+
<section class="output-section">
|
| 102 |
+
<h2>Model Output:</h2>
|
| 103 |
+
<div id="model-output">[Output will appear here]</div>
|
| 104 |
+
</section>
|
| 105 |
+
</main>
|
| 106 |
+
</div>
|
| 107 |
+
<script>
|
| 108 |
+
function generateOutput() {
|
| 109 |
+
// Placeholder for API call and output display
|
| 110 |
+
document.getElementById('model-output').innerText = 'Generating output for: ' + document.getElementById('model-prompt').value;
|
| 111 |
+
// In a real scenario, you would make an API call here
|
| 112 |
+
// and update the #model-output with the response.
|
| 113 |
+
}
|
| 114 |
+
</script>
|
| 115 |
+
</body>
|
| 116 |
+
</html>
|
| 117 |
+
|