forked from borismus/llm4cld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (48 loc) · 2.19 KB
/
index.html
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
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Inconsolata&family=Source+Sans+Pro:wght@400;700&family=Google+Material+Icons:wght@400;500;700&family=Rubik&display=swap"
rel="stylesheet">
<script src="main.js" type="module"></script>
</head>
<body>
<div class="left">
<h1>LLM4CLD</h1>
<h2>System Description ⮕ Causal Loop Diagram</h2>
<section id="openai">
<label for="openai-key">OpenAI Key</label>
<input type="text" id="openai-key" name="openai-key" placeholder="openai key"></input>
</section>
<section id="description">
<label for="system-description">Provide a description of a complex system:</label>
<div contenteditable id="system-description" placeholder="A description of your complex system"></div>
</section>
<button onclick="extractEntities()" title="Click me to extract relevant entities from the description above.">1.
Extract Entities</button>
<section id="entities">
<label for="entity-list">Prune or add to the list of entities below:</label>
<div contenteditable id="entity-list" placeholder="The entities in the system described above"></div>
</section>
<button id="toggle-evaluate-links" onclick="toggleEvaluateLinks(this)"
title="Click me to generate a causal graph for the entities and system description above."></button>
<section id="graph">
<div contenteditable id="cgml" placeholder="The causal graph for the system described above"></div>
</section>
<button onclick="copyURL()" title="Copy the URL to share with others.">3. Copy URL</button>
</div>
<div class="right">
<div id="status"></div>
<causal-graph noTextarea="true"></causal-graph>
</div>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PR6HZ335BW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PR6HZ335BW');
</script>
</body>