Spaces:
Sleeping
Sleeping
Simon Dürr
commited on
Commit
•
3d87e1b
1
Parent(s):
0eab8e5
init from docs
Browse files- Dockerfile +9 -0
- app.py +6 -0
Dockerfile
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.8-slim
|
2 |
+
|
3 |
+
WORKDIR /usr/src/app
|
4 |
+
COPY . .
|
5 |
+
RUN pip install --no-cache-dir gradio
|
6 |
+
EXPOSE 7860
|
7 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
8 |
+
|
9 |
+
CMD ["python", "app.py"]
|
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()
|