Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
title: Pl Ai Frontend
|
| 2 |
emoji: π
|
| 3 |
colorFrom: indigo
|
|
@@ -7,7 +8,6 @@ pinned: false
|
|
| 7 |
app_build_command: npm run build
|
| 8 |
app_file: build/index.html
|
| 9 |
---
|
| 10 |
-
|
| 11 |
# Getting Started with Create React App
|
| 12 |
|
| 13 |
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
@@ -79,49 +79,3 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
|
| 79 |
|
| 80 |
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
| 81 |
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
# Prolog AI Frontend
|
| 85 |
-
|
| 86 |
-
React frontend for Prolog AI chatbot with streaming chat and file upload capabilities.
|
| 87 |
-
|
| 88 |
-
## Features
|
| 89 |
-
|
| 90 |
-
- π JWT authentication
|
| 91 |
-
- π¬ Streaming chat interface
|
| 92 |
-
- π Upload .pl and .qlf knowledge base files
|
| 93 |
-
- π Strict mode toggle
|
| 94 |
-
- π KB metadata display
|
| 95 |
-
- π¨ Modern, responsive UI
|
| 96 |
-
|
| 97 |
-
## Environment Variables
|
| 98 |
-
|
| 99 |
-
Create `.env` file:
|
| 100 |
-
|
| 101 |
-
```
|
| 102 |
-
REACT_APP_API_BASE=http://localhost:7861
|
| 103 |
-
```
|
| 104 |
-
|
| 105 |
-
## Development
|
| 106 |
-
|
| 107 |
-
```bash
|
| 108 |
-
npm install
|
| 109 |
-
npm start
|
| 110 |
-
```
|
| 111 |
-
|
| 112 |
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
| 113 |
-
|
| 114 |
-
## Production Build
|
| 115 |
-
|
| 116 |
-
```bash
|
| 117 |
-
npm run build
|
| 118 |
-
```
|
| 119 |
-
|
| 120 |
-
Builds the app for production to the `build` folder.
|
| 121 |
-
|
| 122 |
-
## Default Credentials
|
| 123 |
-
|
| 124 |
-
- Username: `demo`
|
| 125 |
-
- Password: `demo-password`
|
| 126 |
-
|
| 127 |
-
(Configure in gateway environment variables)
|
|
|
|
| 1 |
+
---
|
| 2 |
title: Pl Ai Frontend
|
| 3 |
emoji: π
|
| 4 |
colorFrom: indigo
|
|
|
|
| 8 |
app_build_command: npm run build
|
| 9 |
app_file: build/index.html
|
| 10 |
---
|
|
|
|
| 11 |
# Getting Started with Create React App
|
| 12 |
|
| 13 |
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
|
|
| 79 |
|
| 80 |
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
| 81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|