File size: 2,731 Bytes
73bd03a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Transformer Dialogue Processor</title>
</head>
<body>
    <h1>Transformer Dialogue Processor</h1>
    <p>Welcome to the Transformer Dialogue Processor! This app allows you to process dialogues using advanced AI models. You can classify the user persona in a dialogue and generate AI-based nudges to depolarize conversations. Please follow the steps below:</p>

    <ol>
        <li>Select a model for classifying user personas. This model will identify the tone or persona of the user in each dialogue.</li>
        <li>Select a model for generating nudges. This model will suggest responses aimed at reducing polarization in the conversation.</li>
        <li>Choose whether to upload your own CSV file or to use a predefined dataset.</li>
        <li>Click 'Process' to start. Note that processing may take some time, especially with larger datasets.</li>
    </ol>

    <p><strong>Important:</strong> The processing time can vary depending on the selected models and the size of the data. Please be patient as the app works through your request.</p>

    <form method="post" enctype="multipart/form-data">
        <label for="persona_model_name">Select Transformer Model for Persona Classification:</label>
        <select id="persona_model_name" name="persona_model_name">
            <option value="roberta-base">RoBERTa</option>
            <option value="bert-base-uncased">BERT</option>
            <option value="gpt2">GPT-2</option>
        </select>
        <br><br>

        <label for="nudge_model_name">Select Transformer Model for Nudge Generation:</label>
        <select id="nudge_model_name" name="nudge_model_name">
            <option value="facebook/bart-large-cnn">BART</option>
            <option value="t5-small">T5</option>
            <option value="gpt2">GPT-2</option>
        </select>
        <br><br>

        <label for="use_online_dataset">Use Online Dataset:</label>
        <input type="checkbox" id="use_online_dataset" name="use_online_dataset" value="yes">
        <label for="dataset_name">Select Dataset:</label>
        <select id="dataset_name" name="dataset_name">
            <option value="AlekseyKorshuk/persona-chat">Persona-Chat</option>
            <option value="dailydialog">DailyDialog</option>
            <option value="empathetic_dialogues">Empathetic Dialogues</option>
        </select>
        <br><br>

        <label for="file">Or Upload Your CSV file:</label>
        <input type="file" id="file" name="file" accept=".csv">
        <br><br>

        <input type="submit" value="Process">
    </form>
</body>
</html>