amit-asl commited on
Commit
270ffa4
·
1 Parent(s): a1a7598

7860 added

Browse files
Files changed (3) hide show
  1. Dockerfile +12 -0
  2. app.py +5 -0
  3. requirements.txt +2 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.9-alpine
5
+
6
+ WORKDIR /app
7
+
8
+ COPY . /app
9
+
10
+ RUN pip install -r requirements.txt
11
+
12
+ CMD python app.py
app.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from nicegui import ui, app
2
+
3
+ ui.label("hello world")
4
+
5
+ ui.run(host="0.0.0.0", port=7860)
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ nicegui
2
+ uvicorn