Spaces:
No application file
No application file
Commit
•
13a3bbb
1
Parent(s):
ec93565
Update templates/index.html
Browse files- templates/index.html +22 -24
templates/index.html
CHANGED
@@ -1,35 +1,33 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
-
<html lang="
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title
|
7 |
-
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
|
8 |
</head>
|
9 |
<body>
|
10 |
-
<
|
11 |
-
|
12 |
-
|
13 |
-
<
|
14 |
-
<
|
15 |
-
<
|
16 |
-
<
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
<script>
|
22 |
async function generateImage() {
|
23 |
-
const
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
document.getElementById('output').appendChild(dummyImage);
|
33 |
}
|
34 |
</script>
|
35 |
</body>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
+
<html lang="ar">
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>نموذج توليد الصور</title>
|
|
|
7 |
</head>
|
8 |
<body>
|
9 |
+
<header>
|
10 |
+
<img src="path_to_your_logo.png" alt="شعار الموقع">
|
11 |
+
</header>
|
12 |
+
<main>
|
13 |
+
<h1>نموذج توليد الصور</h1>
|
14 |
+
<p>اكتب وصف للصورة التي تود من النظام التوليدي انشاءها</p>
|
15 |
+
<div>
|
16 |
+
<button onclick="generateImage()">انشئ</button>
|
17 |
+
</div>
|
18 |
+
<div id="output"></div>
|
19 |
+
</main>
|
20 |
<script>
|
21 |
async function generateImage() {
|
22 |
+
const text = prompt("أدخل النص الذي تريد إدراجه في الصورة:");
|
23 |
+
if (text) {
|
24 |
+
const dummyImage = document.createElement('img');
|
25 |
+
dummyImage.src = `https://via.placeholder.com/400x400?text=${encodeURIComponent(text)}`;
|
26 |
+
document.getElementById('output').innerHTML = '';
|
27 |
+
document.getElementById('output').appendChild(dummyImage);
|
28 |
+
} else {
|
29 |
+
alert("يرجى إدخال نص للصورة!");
|
30 |
+
}
|
|
|
31 |
}
|
32 |
</script>
|
33 |
</body>
|