File size: 833 Bytes
d52ae5a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: AI Workflows
app_file: ui_main.py
sdk: streamlit
sdk_version: 1.35.0
pinned: false
python_version: 3.11.0
---

### Initial Setup
* Install python using conda by running the following command. `conda create -p venv python==3.11 -y`
* Activate conda profile `conda activate ./venv`
* Install required packages `./venv/bin/pip install -r requirements.txt`
* Copy .env.example to .env and enter the required values.
*

### Release process
##### API server
* Install flyctl by following instructions mentioned here https://fly.io/docs/flyctl/install/
* Run `fly deploy` to deploy the app.


##### Streamlit UI
* Push code to main branch on huggingspace https://huggingface.co/spaces/beautiful-code/ai_workflows


### Running on local
* Streamlit app `streamlit run ui_main.py`
* FastAPI app `uvicorn endpoints:app --port=8080`