Skip to content

Commit d7b1509

Browse files
committed
2 parents 8e3d047 + 90eab53 commit d7b1509

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ This template is an example project for a simple Large Language Model (LLM) appl
88

99
These are the available commands:
1010

11-
- `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`.
11+
- `yarn start` — This will start a React development server for the frontend app, with a default port of `5173`.
12+
- `yarn start-server` — This will start a Node development server for the backend app, with a default port of `3100`.
1313

14-
- `npm run build` — This will output a production build of the frontend app in the `dist` directory.
15-
- `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).
14+
- `yarn build` — This will output a production build of the frontend app in the `dist` directory.
15+
- `yarn 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).
1616

1717
## Getting Started
1818

@@ -24,7 +24,7 @@ Now you are ready to run the server and the web app.
2424
You can use the `-p` flag to specify a port for development. To do this, you can either run `npm start` with an additional flag:
2525

2626
```bash
27-
npm start -- --port 3000
27+
yarn start -- --port 3000
2828
```
2929

3030
Or edit the `start` script directly:
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
</head>
66
<body>
77
<div id="root"></div>
8-
<script type="module" src="./src/index.jsx"></script>
8+
<script type="module" src="./client/index.jsx"></script>
99
</body>
1010
</html>

0 commit comments

Comments
 (0)