Spaces:
Sleeping
Sleeping
Rename App.jsx to src/App.jsx
Browse files- App.jsx → src/App.jsx +2 -4
App.jsx → src/App.jsx
RENAMED
|
@@ -73,9 +73,7 @@ function App() {
|
|
| 73 |
const history = JSON.parse(localStorage.getItem('chatHistory') || '[]');
|
| 74 |
const updatedHistory = [...history, userMessage, botMessage];
|
| 75 |
localStorage.setItem('chatHistory', JSON.stringify(updatedHistory));
|
| 76 |
-
|
| 77 |
-
//console.log(JSON.parse(localStorage.getItem('chatHistory')));
|
| 78 |
-
//console.log(updatedHistory);
|
| 79 |
|
| 80 |
} catch (error) {
|
| 81 |
console.error('Error fetching chat response:', error);
|
|
@@ -93,7 +91,7 @@ function App() {
|
|
| 93 |
<div className="App">
|
| 94 |
<div className="header">
|
| 95 |
<img src={logo} alt="Logo" className="logo" />
|
| 96 |
-
<h1>
|
| 97 |
</div>
|
| 98 |
<div className="chat-window">
|
| 99 |
{chatLog.map((message, index) => (
|
|
|
|
| 73 |
const history = JSON.parse(localStorage.getItem('chatHistory') || '[]');
|
| 74 |
const updatedHistory = [...history, userMessage, botMessage];
|
| 75 |
localStorage.setItem('chatHistory', JSON.stringify(updatedHistory));
|
| 76 |
+
|
|
|
|
|
|
|
| 77 |
|
| 78 |
} catch (error) {
|
| 79 |
console.error('Error fetching chat response:', error);
|
|
|
|
| 91 |
<div className="App">
|
| 92 |
<div className="header">
|
| 93 |
<img src={logo} alt="Logo" className="logo" />
|
| 94 |
+
<h1>NOVA</h1>
|
| 95 |
</div>
|
| 96 |
<div className="chat-window">
|
| 97 |
{chatLog.map((message, index) => (
|