Spaces:
Running
Running
Simon Dürr
commited on
Commit
•
dffaf30
1
Parent(s):
e8bd09a
conda image
Browse files- Dockerfile +4 -5
- inference_app.py +6 -0
- requirements.txt +2 -0
Dockerfile
CHANGED
@@ -1,12 +1,11 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
WORKDIR /usr/src/app
|
4 |
-
RUN
|
5 |
-
RUN ls
|
6 |
RUN mkdir /usr/src/app/flagged
|
7 |
COPY . .
|
8 |
-
RUN pip install --no-cache-dir
|
9 |
EXPOSE 7860
|
10 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
11 |
|
12 |
-
CMD ["python", "
|
|
|
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
|