Update templates/upload.html
Browse files- templates/upload.html +7 -2
templates/upload.html
CHANGED
@@ -117,11 +117,16 @@
|
|
117 |
<h1>UoB BERT-Based Sentiment Analyzer 1.0</h1>
|
118 |
|
119 |
<h2>-Upload File-</h2>
|
120 |
-
<form
|
|
|
|
|
|
|
|
|
|
|
121 |
<input type="file" name="file">
|
122 |
<input type="submit" value="Upload and Analyze">
|
123 |
<div id="fileError" class="error-message"></div>
|
124 |
-
</form>
|
125 |
|
126 |
<h2>Or Enter Text for Sentiment Analysis</h2>
|
127 |
<form name="textInputForm" action="/analyze_text" method="post" onsubmit="return validateTextInput()">
|
|
|
117 |
<h1>UoB BERT-Based Sentiment Analyzer 1.0</h1>
|
118 |
|
119 |
<h2>-Upload File-</h2>
|
120 |
+
<form action="/uploader" method="POST" enctype="multipart/form-data">
|
121 |
+
<input type="file" name="file" accept=".csv" required>
|
122 |
+
<button type="submit">Upload & Analyze</button>
|
123 |
+
</form>
|
124 |
+
|
125 |
+
<!-- <form name="fileUploadForm" action="/uploader" method="post" enctype="multipart/form-data" onsubmit="return validateFileInput()">
|
126 |
<input type="file" name="file">
|
127 |
<input type="submit" value="Upload and Analyze">
|
128 |
<div id="fileError" class="error-message"></div>
|
129 |
+
</form> -->
|
130 |
|
131 |
<h2>Or Enter Text for Sentiment Analysis</h2>
|
132 |
<form name="textInputForm" action="/analyze_text" method="post" onsubmit="return validateTextInput()">
|