InfosysResponsibleAiToolKit commited on
Commit
38ef9ce
·
1 Parent(s): 38d6a33

fairness files

Browse files
Files changed (1) hide show
  1. README.md +51 -0
README.md CHANGED
@@ -10,3 +10,54 @@ short_description: solutions Traditional AI & LLM's fairness & bias evaluation
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
13
+ FROM python:3.9
14
+
15
+ # Create a user to run the app
16
+ RUN useradd -m -u 1000 user
17
+ USER user
18
+ ENV PATH="/home/user/.local/bin:$PATH"
19
+
20
+ # Set the working directory to root (default is root, no need to set it explicitly)
21
+ WORKDIR /
22
+
23
+ # Copy the requirements.txt file
24
+ COPY --chown=user ./requirements/requirements.txt requirements/requirements.txt
25
+
26
+ # Copy the necessary libraries (if required)
27
+ # COPY --chown=user ./lib/aicloudlibs-0.1.0-py3-none-any.whl /lib/
28
+ # You can add other .whl files similarly if needed
29
+ # COPY --chown=user ./lib/better_profanity-2.0.0-py3-none-any.whl /lib/
30
+ # COPY --chown=user ./lib/privacy-1.0.9-py3-none-any.whl /lib/
31
+
32
+ # Install dependencies
33
+ RUN pip install --no-cache-dir --upgrade -r requirements/requirements.txt
34
+
35
+ # Copy the src folder directly into the root directory
36
+ COPY --chown=user ./src /src
37
+ COPY --chown=user ./output /output
38
+ COPY --chown=user ./lib /lib
39
+ COPY --chown=user ./explainability_ai_fairness.egg-info /explainability_ai_fairness.egg-info
40
+ COPY --chown=user ./Kubernetes /Kubernetes
41
+ COPY --chown=user ./config /config
42
+ COPY --chown=user ./models /models
43
+ COPY --chown=user ./docs /docs
44
+ COPY --chown=user ./requirements /requirements
45
+
46
+ # Set PYTHONPATH to include /src so Python can find llm_explain
47
+ ENV PYTHONPATH="/src:$PYTHONPATH"
48
+
49
+ RUN pwd
50
+
51
+ RUN ls
52
+
53
+ WORKDIR /src
54
+
55
+ RUN pwd
56
+
57
+ RUN ls
58
+
59
+ # Expose the port (default for Hugging Face is 7860)
60
+ EXPOSE 7860
61
+
62
+ # CMD to run the FastAPI app with Uvicorn
63
+ CMD ["uvicorn", "main_api:app", "--host", "0.0.0.0", "--port", "7860"]