File size: 968 Bytes
61f1bfd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
    <title>Research Agent</title>
</head>
<body>
    <div class="container">
        <h1>Research Agent</h1>
        <form method="post" enctype="multipart/form-data">
            <div class="search-bar">
                <input type="text" name="query" placeholder="Enter your query..." required>
                <label for="file-upload" class="upload-icon">📎</label>
                <input type="file" id="file-upload" name="file" accept=".pdf">
                <button type="submit">Search</button>
            </div>
        {% if result %}
        <div class="results">
            <h2>Results:</h2>
            <pre>{{ result }}</pre>
        </div>
        {% endif %}            
    </div>
</body>
</html>