Skip to content

Commit 05a44ca

Browse files
Update index.html
1 parent f4e65ad commit 05a44ca

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

index.html

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,27 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
6-
<title>AI Data Science Application</title>
6+
<title>AI DataScience Lab</title>
77
<style>
88
body {
99
font-family: Arial, sans-serif;
1010
max-width: 800px;
1111
margin: 40px auto;
1212
padding: 0 20px;
13-
line-height: 1.6;
1413
color: #333;
1514
}
1615

1716
h1 {
1817
text-align: center;
19-
margin-bottom: 30px;
18+
margin-bottom: 5px;
19+
}
20+
21+
h2 {
22+
text-align: center;
23+
font-weight: normal;
24+
font-size: 18px;
25+
margin-top: 0;
26+
color: #666;
2027
}
2128

2229
form {
@@ -48,6 +55,8 @@
4855
padding: 12px;
4956
border-left: 4px solid #ccc;
5057
overflow-x: auto;
58+
white-space: pre-wrap;
59+
word-wrap: break-word;
5160
}
5261

5362
img {
@@ -74,7 +83,8 @@
7483
</style>
7584
</head>
7685
<body>
77-
<h1>AI Data Science Forecasting Tool</h1>
86+
<h1>AI-DataScience-Lab</h1>
87+
<h2>Data Summary (using OpenAI API)</h2>
7888

7989
<div class="section">
8090
<form id="uploadForm">
@@ -86,7 +96,7 @@ <h1>AI Data Science Forecasting Tool</h1>
8696

8797
<div class="section">
8898
<h3>Processing Log</h3>
89-
<pre id="log"></pre>
99+
<pre id="log">Loading modules: pandas, scikit-learn, matplotlib...</pre>
90100
</div>
91101

92102
<div class="section">
@@ -138,7 +148,7 @@ <h3>Forecast Result</h3>
138148

139149
const data = await response.json();
140150
document.getElementById('summary').textContent = data.summary;
141-
document.getElementById('log').textContent = data.log;
151+
document.getElementById('log').textContent = "Loading modules: pandas, scikit-learn, matplotlib...\n\n" + data.log;
142152
document.getElementById('forecast').textContent = data.forecast;
143153
document.getElementById('plot').src = data.plot_url;
144154
document.getElementById('plot').style.display = 'block';
@@ -174,7 +184,7 @@ <h3>Forecast Result</h3>
174184
typeof data.forecast === "string"
175185
? data.forecast
176186
: JSON.stringify(data.forecast, null, 2);
177-
document.getElementById('log').textContent = data.log;
187+
document.getElementById('log').textContent = "Loading modules: pandas, scikit-learn, matplotlib...\n\n" + data.log;
178188
document.getElementById('plot').src = data.plot_url;
179189
document.getElementById('plot').style.display = 'block';
180190

0 commit comments

Comments
 (0)