Bootstrap

BERT的中文问答系统46网页页面

BERT的中文问答系统46网页页面

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>羲和聊天机器人</title>
    <style>
        body {
     
            font-family: Arial, sans-serif;
        }
        .container {
     
            width: 80%;
            margin: 0 auto;
        }
        .top-frame, .middle-frame, .bottom-frame {
     
            margin-bottom: 20px;
        }
        .chat-text {
     
            width: 100%;
            height: 200px;
            border: 1px solid #ccc;
            padding: 10px;
            box-sizing: border-box;
        }
        .user {
     
            text-align: right;
            color: blue;
        }
        .xihua {
     
            text-align: left;
            color: green;
        }
        .log-text {
     
            width: 100%;
            height: 100px;
            border: 1px solid #ccc;
            padding: 10px;
            box-sizing: border-box;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="top-frame">
            <label for="question">问题:</label>
            <input type="text" id="question" placeholder="请输入问题">
            <button onclick="getAnswer()">获取回答</button>
        </div>
        <div class="middle-frame">
            <div id="chat-text" class="chat-text"></div>
        </div>
        <div class="bottom-frame">
            <button onclick="markCorrect()">准确</button>
            <button onclick="markIncorrect()">不准确
;