Spaces:
Runtime error
Runtime error
Commit
Β·
8e5ff05
0
Parent(s):
Add README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Patent Language Model
|
| 3 |
+
emoji: π¨
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: blue
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: 1.17.0
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
## Containerization setup
|
| 13 |
+
We use Docker for containerization. Since we are building a Streamlit application, we can expect to be developing solely in Python. The Docker base image we are building our container from is `python:3.10-slim`.
|
| 14 |
+
|
| 15 |
+
[Reference for deploying Streamlit application in Docker](https://docs.streamlit.io/knowledge-base/tutorials/deploy/docker)
|
| 16 |
+
|
| 17 |
+
We then use VS Code Dev Containers to allow us to create a Docker image from the Dockerfile and develop inside of a Docker container.
|
| 18 |
+
|
| 19 |
+
[Reference for setting up VS Code Dev Containers](https://code.visualstudio.com/docs/devcontainers/create-dev-container#_dockerfile)
|
| 20 |
+
|
| 21 |
+
Our container configuration will be set up as such:
|
| 22 |
+
```
|
| 23 |
+
βββ patent_lang_model
|
| 24 |
+
βββ .devcontainer
|
| 25 |
+
βββ devcontainer.json
|
| 26 |
+
βββ Dockerfile
|
| 27 |
+
```
|