ropercha commited on
Commit
9306fd6
·
1 Parent(s): c6e18d3

App minimal: app.py, Dockerfile, requirements.txt

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.py +1 -1
Dockerfile CHANGED
@@ -10,7 +10,7 @@ ENV PATH="/home/user/.local/bin:$PATH"
10
  WORKDIR /app
11
 
12
  COPY --chown=user ./requirements.txt requirements.txt
13
- RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt
14
 
15
  COPY --chown=user . /app
16
  CMD ["python", "app.py"]
 
10
  WORKDIR /app
11
 
12
  COPY --chown=user ./requirements.txt requirements.txt
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
 
15
  COPY --chown=user . /app
16
  CMD ["python", "app.py"]
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
 
3
  def greet(name):
4
- return "Hello" + name + "!!"
5
 
6
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  iface.launch()
 
1
  import gradio as gr
2
 
3
  def greet(name):
4
+ return "Hello " + name + "!!"
5
 
6
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  iface.launch()