爱意满满的作品展示区。
rustiiiiii

基于大模型搞了个图片转网页链接的网站,技术栈和踩坑分享

  •  
  •   rustiiiiii · May 26, 2024 · 2047 views
    This topic created in 728 days ago, the information mentioned may be changed or developed.

    地址: https://imagetowebsite.dev/

    不知道有啥用,纯玩具 :)

    技术栈:

    • 开发:flask + jinja
    • 部署:aws ec2
    • 网址防护和 SSL:cloudflare
    • 模型 api:gemini
    • 数据分析:google analytics
    • 域名购买:porkbun (便宜+支持支付宝,好评)

    踩坑:

    • 模型 API 选择:本来想用 poe-api-wrapper 的,本地跑没问题,部署到服务器时就开始 RuntimeError: Rate limit exceeded for sending requests to poe.com
    5 replies    2024-05-30 00:21:33 +08:00
    amlee
        1
    amlee  
       May 27, 2024
    上传图片报 500 错误
    rustiiiiii
        2
    rustiiiiii  
    OP
       May 27, 2024
    @amlee 被 nginx 默认的 client_max_body_size 大小限制了( 1M ),已调整到 4M ,可以再试试
    rustiiiiii
        3
    rustiiiiii  
    OP
       May 27, 2024
    不过 aws ec2 免费的 1c1g 负载一高点就 ssh 连不上,考虑换个 vercel 或 cloudflare 这种云函数来部署了
    ajan
        4
    ajan  
       May 28, 2024
    An error occurred while uploading the file.
    rustiiiiii
        5
    rustiiiiii  
    OP
       May 30, 2024
    @ajan 可以了,ec2 不稳定,要修复问题 ssh 都连不上,哎,后续迁移走
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6069 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 80ms · UTC 06:16 · PVG 14:16 · LAX 23:16 · JFK 02:16
    ♥ Do have faith in what you're doing.