-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupload.html
36 lines (36 loc) · 1.53 KB
/
upload.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document Translator</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1 class="mt-5">Translate Your Document</h1>
<form method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="input_file">Upload Document:</label>
<input type="file" class="form-control-file" id="input_file" name="input_file" required>
</div>
<div class="form-group">
<label for="src_lang">Source Language (optional):</label>
<input type="text" class="form-control" id="src_lang" name="src_lang" placeholder="e.g., en, de, fr">
</div>
<div class="form-group">
<label for="target_lang">Target Language:</label>
<input type="text" class="form-control" id="target_lang" name="target_lang" required placeholder="e.g., en, de, fr">
</div>
<div class="form-group">
<label for="model">Model (optional):</label>
<input type="text" class="form-control" id="model" name="model" placeholder="Default is llama3.2">
</div>
<div class="form-group">
<label for="api_token">API Token:</label>
<input type="password" class="form-control" id="api_token" name="api_token" required>
</div>
<button type="submit" class="btn btn-primary">Translate</button>
</form>
</div>
</body>
</html>