Spaces:
Sleeping
Sleeping
Commit
•
af65f1d
1
Parent(s):
b693548
Update static/index.html
Browse files- static/index.html +10 -35
static/index.html
CHANGED
@@ -1,36 +1,11 @@
|
|
|
|
1 |
<!DOCTYPE html>
|
2 |
-
<html
|
3 |
-
|
4 |
-
<
|
5 |
-
|
6 |
-
|
7 |
-
<
|
8 |
-
<
|
9 |
-
|
10 |
-
|
11 |
-
<main>
|
12 |
-
<section id="text-gen">
|
13 |
-
<h1>Text generation using Flan T5</h1>
|
14 |
-
<p>
|
15 |
-
Model:
|
16 |
-
<a
|
17 |
-
href="https://huggingface.co/google/flan-t5-small"
|
18 |
-
rel="noreferrer"
|
19 |
-
target="_blank"
|
20 |
-
>google/flan-t5-small</a
|
21 |
-
>
|
22 |
-
</p>
|
23 |
-
<form class="text-gen-form">
|
24 |
-
<label for="text-gen-input">Text prompt</label>
|
25 |
-
<input
|
26 |
-
id="text-gen-input"
|
27 |
-
type="text"
|
28 |
-
value="English: Translate There are many ducks. German:"
|
29 |
-
/>
|
30 |
-
<button id="text-gen-submit">Submit</button>
|
31 |
-
<p class="text-gen-output"></p>
|
32 |
-
</form>
|
33 |
-
</section>
|
34 |
-
</main>
|
35 |
-
</body>
|
36 |
-
</html>
|
|
|
1 |
+
<!-- templates/index.html -->
|
2 |
<!DOCTYPE html>
|
3 |
+
<html>
|
4 |
+
<head>
|
5 |
+
<title>FastAPI Example</title>
|
6 |
+
</head>
|
7 |
+
<body>
|
8 |
+
<h1>FastAPI Example</h1>
|
9 |
+
<p>{{ text }}</p>
|
10 |
+
</body>
|
11 |
+
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|