Al1Abdullah commited on
Commit
7cd585c
·
verified ·
1 Parent(s): b8dcbf5

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +37 -0
templates/index.html ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Multimodal-CV</title>
5
+ </head>
6
+ <body>
7
+ <h1>Multimodal-CV - Flask Interface</h1>
8
+ <form method="POST" enctype="multipart/form-data">
9
+ <label>Message:</label>
10
+ <input type="text" name="user_input"><br><br>
11
+
12
+ <label>Upload PDF:</label>
13
+ <input type="file" name="uploaded_pdf" multiple><br><br>
14
+
15
+ <label>Upload Image:</label>
16
+ <input type="file" name="uploaded_image"><br><br>
17
+
18
+ <label>Upload Audio:</label>
19
+ <input type="file" name="uploaded_audio"><br><br>
20
+
21
+ <label>PDF Chat:</label>
22
+ <input type="checkbox" name="pdf_chat"><br><br>
23
+
24
+ <button type="submit">Send</button>
25
+ </form>
26
+
27
+ {% if response %}
28
+ <h3>AI Response:</h3>
29
+ <p>{{ response }}</p>
30
+ {% if audio_path %}
31
+ <audio controls>
32
+ <source src="{{ url_for('audio', path=audio_path) }}" type="audio/mp3">
33
+ </audio>
34
+ {% endif %}
35
+ {% endif %}
36
+ </body>
37
+ </html>