Spaces:
No application file
No application file
Create index.html
Browse files- index.html +18 -0
index.html
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>Text Summarizer</title>
|
6 |
+
</head>
|
7 |
+
<body>
|
8 |
+
<h1>Article Summarizer</h1>
|
9 |
+
<form method="POST" action="/summarize">
|
10 |
+
<textarea name="article" rows="10" cols="50" placeholder="Enter your article here..."></textarea><br>
|
11 |
+
<input type="submit" value="Summarize">
|
12 |
+
</form>
|
13 |
+
{% if summary %}
|
14 |
+
<h2>Summary:</h2>
|
15 |
+
<p>{{ summary }}</p>
|
16 |
+
{% endif %}
|
17 |
+
</body>
|
18 |
+
</html>
|