Spaces:
Runtime error
Runtime error
| <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> | |