Spaces:
Runtime error
Runtime error
charreaubell
commited on
Commit
•
9f27fb8
1
Parent(s):
e7b3c5b
Updated scripts for gradio app import; added no deps to gradio docker; removed extra chromadb from settings
Browse files- Dockerfile +2 -2
- app.py +1 -1
- requirements.txt +8 -8
Dockerfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
-
FROM python:3.
|
5 |
|
6 |
WORKDIR /code
|
7 |
|
@@ -10,7 +10,7 @@ COPY ./requirements.txt /code/requirements.txt
|
|
10 |
RUN pip install --no-cache-dir --upgrade pip
|
11 |
|
12 |
RUN --mount=type=secret,id=PIPLOC,mode=0444,required=true \
|
13 |
-
bash -c "PIPLOC=$(cat /run/secrets/PIPLOC); pip install --no-cache-dir \${PIPLOC}"
|
14 |
|
15 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
16 |
|
|
|
1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
+
FROM python:3.10
|
5 |
|
6 |
WORKDIR /code
|
7 |
|
|
|
10 |
RUN pip install --no-cache-dir --upgrade pip
|
11 |
|
12 |
RUN --mount=type=secret,id=PIPLOC,mode=0444,required=true \
|
13 |
+
bash -c "PIPLOC=$(cat /run/secrets/PIPLOC); pip install --no-deps --no-cache-dir \${PIPLOC}"
|
14 |
|
15 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
16 |
|
app.py
CHANGED
@@ -7,4 +7,4 @@ from ai_classroom_suite.UIBaseComponents import *
|
|
7 |
from ai_classroom_suite.UIBaseComponents import FullStudyApp
|
8 |
|
9 |
# Launch the relevant component
|
10 |
-
FullStudyApp.queue().launch()
|
|
|
7 |
from ai_classroom_suite.UIBaseComponents import FullStudyApp
|
8 |
|
9 |
# Launch the relevant component
|
10 |
+
FullStudyApp.queue().launch(server_name='0.0.0.0', server_port=7860)
|
requirements.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
1 |
+
langchain
|
2 |
+
pandas
|
3 |
+
numpy
|
4 |
+
openai
|
5 |
+
gradio
|
6 |
+
chromadb
|
7 |
+
tiktoken
|
8 |
+
unstructured
|