Spaces:
Running
Running
Upload 3 files
Browse files- README.md +55 -0
- instructions.txt +22 -0
- runtime.txt +1 -0
README.md
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# π± Nano AI Image Analyzer
|
2 |
+
|
3 |
+
this is a Gen-AI project. that utilizes various AI models to analyze a picture.
|
4 |
+
|
5 |
+
### steps
|
6 |
+
1. create your virtual environment (venv) [optional]
|
7 |
+
> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser <br/>
|
8 |
+
> .\venv\Scripts\Activate.ps1 #powershell <br/>
|
9 |
+
> venv\Scripts\activate.bat #cmd <br/>
|
10 |
+
|
11 |
+
1. install all modules under `requirements.txt` using -->
|
12 |
+
> pip install -r requirements.txt
|
13 |
+
|
14 |
+
2. run the app using
|
15 |
+
> streamlit run app.py <br/>
|
16 |
+
|
17 |
+
make sure to check `.streamlit/config.toml` for your streamlit settings
|
18 |
+
|
19 |
+
|
20 |
+
## features offered
|
21 |
+
|
22 |
+
<h3>π Detect Objects</h3>
|
23 |
+
detects person, car, watch, TV etc <br/>
|
24 |
+
creates a bounded box around it <br />
|
25 |
+
provides a table with rows representing object type, box coordinates, score
|
26 |
+
|
27 |
+
<h3>π Describe Image</h3>
|
28 |
+
generates a very small caption
|
29 |
+
|
30 |
+
<h3>π Generate Story</h3>
|
31 |
+
creates a story based on caption
|
32 |
+
|
33 |
+
<h3>π¬ Chat system</h3>
|
34 |
+
ask about image
|
35 |
+
|
36 |
+
|
37 |
+
## models used π€π»
|
38 |
+
why don't you read the `apps.py`? π
|
39 |
+
|
40 |
+
## file structure
|
41 |
+
```
|
42 |
+
|-- .streamlit
|
43 |
+
| |-- config.toml --> streamlit configuration
|
44 |
+
|
|
45 |
+
|-- app.py --> main app
|
46 |
+
|-- functions.py --> functions used in the app. (it is not a module)
|
47 |
+
|-- instruction.txt --> draft of README.md
|
48 |
+
|-- requirements.txt --> all the pakages under venv. generated using `pip freeze`
|
49 |
+
|-- type2.py \
|
50 |
+
|-- type3.py --> some extra template i used while developing
|
51 |
+
|-- type4.py /
|
52 |
+
```
|
53 |
+
|
54 |
+
## link of streamlit cloud
|
55 |
+
[will be added](#)
|
instructions.txt
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
2 |
+
.\venv\Scripts\Activate.ps1 #powershell
|
3 |
+
venv\Scripts\activate.bat #cmd
|
4 |
+
|
5 |
+
streamlit run app.py --server.enableXsrfProtection false
|
6 |
+
|
7 |
+
|
8 |
+
your_project/
|
9 |
+
βββ venv/ # Virtual environment (already created)
|
10 |
+
βββ app.py # Main application file
|
11 |
+
βββ requirements.txt # Dependencies file
|
12 |
+
βββ static/
|
13 |
+
β βββ uploads/ # For storing uploaded images
|
14 |
+
βββ templates/ # For HTML templates (if using web interface)
|
15 |
+
|
16 |
+
|
17 |
+
chat/
|
18 |
+
β
|
19 |
+
βββ app.py
|
20 |
+
βββ venv/ (optional, ignored in cloud)
|
21 |
+
βββ .streamlit/
|
22 |
+
βββ config.toml
|
runtime.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
python-3.10.13
|