Spaces:
Sleeping
Sleeping
Akinkunle Akinola
commited on
Commit
·
58d10ce
1
Parent(s):
316e482
Add application file
Browse files- Dockerfile +4 -1
- app.py +2 -2
Dockerfile
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
FROM
|
|
|
|
|
|
|
2 |
RUN useradd -m -u 1000 user
|
3 |
USER user
|
4 |
ENV HOME=/Users/kakin \
|
|
|
1 |
+
FROM alpine
|
2 |
+
RUN apt-get update
|
3 |
+
RUN apt-get install vim
|
4 |
+
RUN apt-get install python:3.9
|
5 |
RUN useradd -m -u 1000 user
|
6 |
USER user
|
7 |
ENV HOME=/Users/kakin \
|
app.py
CHANGED
@@ -48,10 +48,10 @@ async def main(message: str):
|
|
48 |
PromptMessage(
|
49 |
role="user",
|
50 |
template=user_template,
|
51 |
-
formatted=user_template.format(input=message),
|
52 |
)
|
53 |
],
|
54 |
-
inputs = {"input" : message},
|
55 |
settings=settings
|
56 |
)
|
57 |
|
|
|
48 |
PromptMessage(
|
49 |
role="user",
|
50 |
template=user_template,
|
51 |
+
formatted=user_template.format(input=message.content),
|
52 |
)
|
53 |
],
|
54 |
+
inputs = {"input" : message.content},
|
55 |
settings=settings
|
56 |
)
|
57 |
|