-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.html
119 lines (105 loc) · 2.27 KB
/
model.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
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
<!doctype html>
<html lang="en">
<head>
<title>Main</title>
<style>
body {
font-family: Arial, sans-serif;
background-image:url('bg.jpg');
background-size: cover;
background-position: center;
margin: 0;
padding: 0;
}
.container {
max-width: 960px;
margin: 0 auto;
padding: 20px;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
button {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
}
.search-bar {
background-color: #fff;
border-radius: 5px;
padding: 20px;
margin-top: 20px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
box-sizing: border-box;
}
#inputfield input[type="text"], #inputfield input[type="submit"] {
padding: 10px;
font-size: 16px;
border-radius: 5px;
border: none;
box-sizing: border-box;
}
#inputfield input[type="text"] {
width: 70%;
margin-right: 10px;
}
#inputfield input[type="submit"] {
background-color: #4CAF50;
color: white;
width: 25%;
}
.textbox {
margin-top: 20px;
padding: 10px;
background-color: #f2f2f2;
border-radius: 5px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
box-sizing: border-box;
}
.textbox input[type="text"] {
padding: 10px;
font-size: 16px;
border-radius: 5px;
border: none;
width: 100%;
box-sizing: border-box;
}
.textbox p {
margin-top: 10px;
font-size: 16px;
color: #666;
}
</style>
</head>
<body>
<div class="container">
<button onclick="window.location.href='/'"> Go Home</button>
<div class="search-bar">
<div id="select">
</div>
<form method="POST" id="inputfield" action="{{ url_for('model') }}">
<input type="text" name="prompt" placeholder="Enter a prompt...">
<input type="submit" value="Submit">
</form>
<div class="textbox">
{% if processed_prompt %}
<p>{{ processed_prompt }}</p>
{% else %}
<span>Please allow me to be co creative with you to generate sonnets !</span>
{% endif %}
</div>
</div>
</div>
</body>
</html>