zerishdorelser commited on
Commit
66c9358
Β·
verified Β·
1 Parent(s): 720e3da

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +55 -0
  2. instructions.txt +22 -0
  3. 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