Al1Abdullah's picture
Update templates/index.html
fc8de8d verified
<!-- templates/index.html -->
<!DOCTYPE html>
<html>
<head>
<title>Multimodal Chatbot</title>
</head>
<body>
<h1>Chat with LLM</h1>
<form method="POST" enctype="multipart/form-data">
<label>Enter message:</label><br>
<input type="text" name="user_input"><br><br>
<label>Upload PDF(s):</label><br>
<input type="file" name="uploaded_pdf" multiple><br><br>
<label>Upload Image:</label><br>
<input type="file" name="uploaded_image"><br><br>
<label>Upload Audio:</label><br>
<input type="file" name="uploaded_audio"><br><br>
<label>Enable PDF Chat:</label>
<input type="checkbox" name="pdf_chat"><br><br>
<input type="submit" value="Send">
</form>
{% if response %}
<h2>Response:</h2>
<p>{{ response }}</p>
{% endif %}
{% if audio_path %}
<h2>Audio:</h2>
<audio controls>
<source src="{{ url_for('audio') }}?path={{ audio_path }}" type="audio/mp3">
</audio>
{% endif %}
</body>
</html>