-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
140 lines (131 loc) · 6.39 KB
/
Copy pathindex.html
File metadata and controls
140 lines (131 loc) · 6.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html>
<head>
<title>Image Yinyang</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="/style.css">
<script src="/js.js"></script>
<script src="https://unpkg.com/[email protected]"
integrity="sha384-QFjmbokDn2DjBjq+fM+8LUIVrAgqcNW2s0PjAxHETgRn9l4fvX31ZxDxvwQnyMOX"
crossorigin="anonymous"></script>
<script data-goatcounter="https://yinyang.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
</head>
<body>
<div class="grid-overlay"></div>
<div class="main-card">
<div class="container text-center">
<div class="row">
<div class="col-md-3">
<div class="header-section">
<a href="/"><img src="https://avatars.githubusercontent.com/u/153049230?s=320&v=4"
class="logo-img" /></a>
<h3 id="header">
Find the<br /><span class="yin">yin</span> <span class="divider">&</span> <span class="yang">yang</span><br />of an image
</h3>
</div>
</div>
<div class="col-md-9">
<div class="input-section">
<input id="yinyangUrl" type="text" value="" size="32" placeholder="Image URL..." />
<br />
<div id="inputDiv">
<div class="controls">
<div style="margin-top: 1.5rem;">
<label for="thresMod" id="thresModLabel" class="threshold-label">neutral</label>
<br />
<input type="range" id="thresMod" name="thresMod" min="-3" max="3" value="0" step="1" />
<br />
<button id="yinyang" class="cyber-button">🖼️☯️</button>
<div id="metadata"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="sourceDiv">
<!-- Compact source bar at top -->
<div class="source-bar">
<div class="source-bar-inner">
<div class="source-compact">
<a id="yinyangUrlRO" href="">
<img id="sourceImage" src="" />
</a>
</div>
<div id="imageDesc" class="description-compact">
<div class="spinner-border text-info" role="status">
<span class="visually-hidden">...</span>
</div>
</div>
</div>
</div>
<!-- Split screen container -->
<div class="split-container">
<!-- Yin (Left/Dark) Half -->
<div class="split-half yin-half">
<div class="split-content">
<div class="split-label">YIN</div>
<a id="badImageLink" target="_blank">
<img id="badImage" class="split-image"
src="https://cdn.pixabay.com/animation/2022/07/29/03/42/03-42-11-849_512.gif" />
</a>
<div id="badPrompt" class="split-prompt yin"></div>
</div>
</div>
<!-- Center Divider -->
<div class="center-divider">
<div class="divider-line"></div>
<div class="divider-symbol">☯</div>
</div>
<!-- Yang (Right/Light) Half -->
<div class="split-half yang-half">
<div class="split-content">
<div class="split-label">YANG</div>
<a id="goodImageLink" target="_blank">
<img id="goodImage" class="split-image"
src="https://cdn.pixabay.com/animation/2022/07/29/03/42/03-42-11-849_512.gif" />
</a>
<div id="goodPrompt" class="split-prompt yang"></div>
</div>
</div>
</div>
</div>
<div class="container text-center">
<div id="footer" class="footer">
<div class="footer-content">
powered by
<a href="https://platform.openai.com/docs/guides/vision" target="_blank" hx-trigger="load"
hx-get="https://api.yinyang.computerpho.be/model/imageToTextModel" hx-swap="innerHTML">...</a> for
image analysis,
<a href="https://developers.cloudflare.com/workers-ai/models#text-classification" target="_blank"
hx-trigger="load" hx-get="https://api.yinyang.computerpho.be/model/textClassificationModel"
hx-swap="innerHTML">...</a>
for text classification &
<a href="https://developers.cloudflare.com/workers-ai/models/#text-to-image" target="_blank"
hx-trigger="load" hx-get="https://api.yinyang.computerpho.be/model/textToImageModel"
hx-swap="innerHTML">...</a> for text-to-image.
<br /><br />
<a href="https://github.com/image-yinyang" target="_blank">an</a>
<a href="https://github.com/edfletcher" target="_blank">ed fletcher</a> joint.
</div>
</div>
</div>
<div class="container text-center">
<div id="reqId" class="request-id">
request ID: <a href="" id="reqIdLink"></a>
</div>
</div>
</body>
</html>