Closed 1chooo closed 4 months ago
@sh1un 在 #11 有新增 app.py
囉!搭配 app/
, app.py
, .env
直接透過 python app.py
即可執行
@sh1un 在 #11 有新增
app.py
囉!搭配app/
,app.py
,.env
直接透過python app.py
即可執行
OK 相當感謝!
Dockerfile 撰寫後來參考了這個 github repo: https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi
Dockerfile 撰寫後來參考了這個 github repo: https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi
我之後加進文件的 reference,感謝
Serverless Machine Learning Applications with Hugging Face Gradio and AWS Lambda
或許我們可以直接用 Docker 把 gradio 給打包成 lambda_function,需要把目前架構改寫,用 cdk 去執行包好的 image 把前端介面 run 在 AWS Lambda 達成 Serverless 架構。
app.py
(見 #11)requirements.txt
cdk.py
cdk.json
Dockerfile