Ajeet Singh Raina commited on
Commit
1dcb167
·
1 Parent(s): a2a566d

Add application file

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. app.py +1 -1
  3. requirements.txt +1 -0
Dockerfile CHANGED
@@ -11,5 +11,5 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  COPY . .
13
 
14
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
15
 
 
11
 
12
  COPY . .
13
 
14
+ CMD ["python", "app.py"]
15
 
app.py CHANGED
@@ -1,3 +1,3 @@
1
  import gradio as gr
2
 
3
- gr.Interface.load("models/stabilityai/stable-diffusion-2-1").launch()
 
1
  import gradio as gr
2
 
3
+ gr.Interface.load("models/stabilityai/stable-diffusion-2-1").launch()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ gradio