Skip to content

sands321/zagi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZAGI

Release the power of GPT

GPTs调用本地python,解决联网、调三方库问题

  1. 创建GPTs
  • 增加prompt, prompt填入gpts/prompt.txt
  • 增加action, schema填入gpts/python_schema.json
  1. 启动本地服务
  • 安装依赖: pip install -r requirements.txt
  • 启动notebook: jupyter lab --notebook-dir ./working
  • 启动接口服务: uvicorn src.server:app
  1. 暴漏服务到外网
  • 方法1: 使用LocalTunnel
    • 安装: npm install -g localtunnel
    • 转发本地端口: lt --port 8000
    • 弊端: 重启lt后地址会变, 另外相对有点慢
  • 方法2: 使用花生壳
    • 好处: 快, 地址固定

相关文章

  1. 知乎:GPTs和本地代码打通

看下效果

image image

联系方式

  • WeChat:zhucheng798
  • 知乎:星辰

About

Release the power of GPT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published