rcodina commited on
Commit
83f5b79
·
verified ·
1 Parent(s): 1052b16

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.py +8 -0
  2. dockerfile +9 -0
  3. requirements.txt +1 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def saluda(nom):
4
+ return "Hola " + nom
5
+
6
+ demo = gr.Interface(fn=saluda, inputs="text", outputs="text")
7
+
8
+ demo.launch()
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 -r requirements.txt
6
+ EXPOSE 7860
7
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
8
+
9
+ CMD ["python", "app.py"]
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ gradio