File size: 2,290 Bytes
45b781c
 
9c43bf9
45b781c
 
 
 
d7b8355
45b781c
 
 
a00dbd0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
980798a
 
d015754
1da768a
a00dbd0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
title: DRAGON Innovation
emoji: 🐉
colorFrom: pink
colorTo: indigo
sdk: gradio
sdk_version: 4.21.0
app_file: app.py
pinned: false
---

# README

## Instructions for using d-RAGon
We recommend experiencing d-RAGon through the online demo hosted on huggingface at [DRAGON_innovation](https://huggingface.co/spaces/how2traindragon/DRAGON_innovation)

## Instructions for Running d-RAGon locally

Follow the instructions below to set up and run the application locally on your system.

### Prerequisites

Ensure you have Python installed on your system. You can download it from [python.org](https://www.python.org/downloads/). The version used in the online demo is 3.10.

### API keys

You would require a valid LTA DataMall API key and a valid openAI API key of your own provisioning to run the application locally.
LTA DataMall API key can be applied for [here](https://datamall.lta.gov.sg/content/datamall/en/request-for-api.html) and openAI API key can be generated [here](https://platform.openai.com/api-keys) (credit topup is required to utilise openAI API).

You can provide the API keys in one of two ways: \
(1) Uncommenting lines 34-35 in app.py AND adding the keys to the .env file in the project directory, OR;\
(2) Uncommenting lines 38-39 and Directly pasting the keys into the two lines

### Installation (via terminal/cmd)

1. Clone or download the repository to your local machine:
```
# Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install

git clone https://huggingface.co/spaces/how2traindragon/DRAGON_innovation
```

2. Navigate to the project directory (~/DRAGON_innovation) and install the required dependencies:
```
pip install -r requirements.txt
```

3. Once the dependencies are installed, you can run the application by executing the following command:
```
python app.py
```

4. The application should now be up and running. You can access it by navigating to the link in your command line interface in your web browser.

### Additional Notes

- If you encounter any issues during installation or while running the application, please feel free to contact the developers for assistance.

- For more detailed information about the application and its usage, please refer to the bundled information video.

- Enjoy using the application!