Kory commited on
Commit
d771781
Β·
1 Parent(s): 5ec4664

changing to docker

Browse files
Files changed (3) hide show
  1. Dockerfile +12 -0
  2. README.md +2 -3
  3. app.py +1 -1
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ COPY . .
9
+
10
+ EXPOSE 7860
11
+
12
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -1,10 +1,9 @@
1
  ---
2
- title: Llm Project 1
3
  emoji: πŸ‘
4
  colorFrom: blue
5
  colorTo: red
6
- sdk: gradio
7
- sdk_version: 5.49.1
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
1
  ---
2
+ title: LLM Project 1
3
  emoji: πŸ‘
4
  colorFrom: blue
5
  colorTo: red
6
+ sdk: docker
 
7
  app_file: app.py
8
  pinned: false
9
  license: mit
app.py CHANGED
@@ -446,4 +446,4 @@ def index():
446
  return html_content
447
 
448
  if __name__ == "__main__":
449
- uvicorn.run(app, host="0.0.0.0", port=8010)
 
446
  return html_content
447
 
448
  if __name__ == "__main__":
449
+ uvicorn.run(app, host="0.0.0.0", port=7860)