Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -1,14 +1,45 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: 💬
|
4 |
colorFrom: yellow
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
sdk_version: 5.0.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
-
short_description:
|
12 |
---
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: Offline Survey Analysis
|
3 |
emoji: 💬
|
4 |
colorFrom: yellow
|
5 |
+
colorTo: blue
|
6 |
sdk: gradio
|
7 |
sdk_version: 5.0.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
+
short_description: Analyse sensitive survey data in offline mode
|
12 |
---
|
13 |
|
14 |
+
This space build from https://huggingface.co/spaces/VIDraft/EveryRAG and provide adjustements for this work offline with ollama when __working with sensitive data__ that can come with data protection concerns.
|
15 |
+
|
16 |
+
The app now works completely offline (after downloading the model) wich means that you do not need to share any data on the cloud...
|
17 |
+
|
18 |
+
## Requirements:
|
19 |
+
|
20 |
+
1. Install [Ollama](https://ollama.com/download) and run in a shell: `ollama serve`
|
21 |
+
|
22 |
+
2. You must have pulled the [Mistral-Nemo model](https://ollama.com/library/mistral-nemo), a model that excel in data analysis but can still run on regular consumer hardware: `ollama pull mistral-nemo`
|
23 |
+
|
24 |
+
3. Install [Visual Studio Code](https://code.visualstudio.com/) and make sure to install the last [stable version of python language](https://www.python.org/downloads/)
|
25 |
+
|
26 |
+
4. Clone this repo in visual studio,
|
27 |
+
|
28 |
+
5. Create a virtual environment in Python development. This is essential for managing dependencies, avoiding conflicts, and ensuring reproducibility. It allows you to isolate project-specific libraries and versions, preventing interference with other projects or the global Python installation. This isolation helps maintain a clean development environment, simplifies project setup for collaborators, and enhances security by reducing the risk of introducing vulnerabilities. Overall, virtual environments provide a consistent and organized way to manage your Python projects effectively.
|
29 |
+
|
30 |
+
- Open your terminal in VS code
|
31 |
+
- Run the following command to create a virtual environment, here called **`.venv`**: `python -m venv .venv`
|
32 |
+
- Then, activate the virtual environment - on windows with `.\.venv\Scripts\activate`
|
33 |
+
- Then install all require Python Modules with `pip install -r requirements.txt`
|
34 |
+
|
35 |
+
## How to Use:
|
36 |
+
|
37 |
+
|
38 |
+
1. Run the app.py script > `python app.py`
|
39 |
+
|
40 |
+
2. Open your localhost and upload your survey data file (text, code, CSV, or Parquet)
|
41 |
+
|
42 |
+
3. The app will automatically analyze the file structure
|
43 |
+
|
44 |
+
4. __Et voilà!__ Ask questions about your file in natural language. The model can help you to write quickly any analysis notebook!
|
45 |
+
|