Simon Dürr commited on
Commit
dffaf30
1 Parent(s): e8bd09a

conda image

Browse files
Files changed (3) hide show
  1. Dockerfile +4 -5
  2. inference_app.py +6 -0
  3. requirements.txt +2 -0
Dockerfile CHANGED
@@ -1,12 +1,11 @@
1
- FROM python:3.8-slim
2
 
3
  WORKDIR /usr/src/app
4
- RUN pwd
5
- RUN ls
6
  RUN mkdir /usr/src/app/flagged
7
  COPY . .
8
- RUN pip install --no-cache-dir gradio
9
  EXPOSE 7860
10
  ENV GRADIO_SERVER_NAME="0.0.0.0"
11
 
12
- CMD ["python", "app.py"]
 
1
+ FROM continuumio/miniconda3
2
 
3
  WORKDIR /usr/src/app
4
+ RUN python -v
 
5
  RUN mkdir /usr/src/app/flagged
6
  COPY . .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
  EXPOSE 7860
9
  ENV GRADIO_SERVER_NAME="0.0.0.0"
10
 
11
+ CMD ["python", "inference_app.py"]
inference_app.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name):
4
+ return f"Hello {name}!"
5
+
6
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text").launch()
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ gradio
2
+ gradio_molecule3d