Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
5fed067
1
Parent(s):
27373bb
Try to fix gradio app
Browse files- gui/Dockerfile +16 -0
- gui/app.py +0 -1
- gui/requirements.txt +2 -1
gui/Dockerfile
CHANGED
@@ -1,5 +1,19 @@
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
WORKDIR /code
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
@@ -12,4 +26,6 @@ RUN python -c "import pysr"
|
|
12 |
|
13 |
COPY . .
|
14 |
|
|
|
|
|
15 |
CMD ["python", "app.py"]
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
ENV PYTHONUNBUFFERED=1 \
|
4 |
+
PYTHONDONTWRITEBYTECODE=1
|
5 |
+
|
6 |
+
RUN apt-get update && \
|
7 |
+
apt-get install -y --no-install-recommends \
|
8 |
+
build-essential \
|
9 |
+
git \
|
10 |
+
libgl1-mesa-glx \
|
11 |
+
libglib2.0-0 \
|
12 |
+
libpython3-dev \
|
13 |
+
&& \
|
14 |
+
apt-get clean && \
|
15 |
+
rm -rf /var/lib/apt/lists/*
|
16 |
+
|
17 |
WORKDIR /code
|
18 |
|
19 |
COPY ./requirements.txt /code/requirements.txt
|
|
|
26 |
|
27 |
COPY . .
|
28 |
|
29 |
+
EXPOSE 7860
|
30 |
+
|
31 |
CMD ["python", "app.py"]
|
gui/app.py
CHANGED
@@ -75,7 +75,6 @@ def greet(
|
|
75 |
|
76 |
model = pysr.PySRRegressor(
|
77 |
progress=False,
|
78 |
-
verbosity=0,
|
79 |
maxsize=maxsize,
|
80 |
niterations=niterations,
|
81 |
binary_operators=binary_operators,
|
|
|
75 |
|
76 |
model = pysr.PySRRegressor(
|
77 |
progress=False,
|
|
|
78 |
maxsize=maxsize,
|
79 |
niterations=niterations,
|
80 |
binary_operators=binary_operators,
|
gui/requirements.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
pysr==0.18.1
|
2 |
numpy
|
3 |
-
pandas
|
|
|
|
1 |
pysr==0.18.1
|
2 |
numpy
|
3 |
+
pandas
|
4 |
+
gradio
|