Skip to content

Commit 7f676fe

Browse files
committed
rename folder + set errors empty str
1 parent ccd98fc commit 7f676fe

File tree

7 files changed

+3
-3
lines changed

7 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This template is an example project for a simple Large Language Model (LLM) appl
99
These are the available commands:
1010

1111
- `npm start` — This will start a React development server for the frontend app, with a default port of `5173`.
12-
- `npm start-server` — This will start a Node development server for the backend app, with a default port of `3100`.
12+
- `npm run start-server` — This will start a Node development server for the backend app, with a default port of `3100`.
1313

1414
- `npm run build` — This will output a production build of the frontend app in the `dist` directory.
1515
- `npm run preview` — This will run the production build of the frontend app locally with a default port of `5173` (_note_: this will not work if you haven't generated the production build yet).
File renamed without changes.

src/Chat.jsx renamed to client/Chat.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ const Chat = () => {
77
const [userInput, setUserInput] = useState('');
88
const [loading, setLoading] = useState(false);
99
const [answer, setAnswer] = useState('');
10-
const [error, setError] = useState(null);
10+
const [error, setError] = useState('');
1111

1212
const handleInputChange = (event) => {
13-
setError(null);
13+
setError('');
1414
setUserInput(event.target.value);
1515
};
1616

File renamed without changes.

0 commit comments

Comments
 (0)