Spaces:
Sleeping

degpt / README.md
ejschwartz's picture
Improve DeGPT form and support custom model providers
6c348e7 verified
|
Raw History Blame Contribute Delete
1.47 kB
---
title: DeGPT
emoji: 🔍
colorFrom: blue
colorTo: gray
sdk: gradio
sdk_version: 6.32.0
python_version: '3.10'
app_file: app.py
pinned: false
---
# DeGPT
The original code editor starts with a Fibonacci example. Run it as-is or replace it with one decompiled C function. **Automatic** uses DeGPT’s referee to choose which passes to run. You can also run variable renaming, comments, or simplification individually.
The default model is `gpt-4.1-mini` on OpenAI. You can choose another model or enter a model ID. To use an OpenAI-compatible provider, enter its public HTTPS API base URL on port 443, its model ID, and a key issued by that provider.
Each run sends your code and API key to the selected provider and is billed to that key. The password field keeps your key between runs until you clear it or reload the page. The server uses it only for each request and does not write chat logs. Review the revision before using it, since model edits may change behavior.
Based on [DeGPT by Peiwei Hu, Ruigang Liang, and Kai Chen](https://github.com/PeiweiHu/DeGPT). The Space retrieves pinned upstream sources at startup and uses DeGPT’s original prompts and cleanup roles.
## Run locally
Use Python 3.10 and a C compiler (`cc`).
```sh
python -m venv .venv
. .venv/bin/activate
python -m pip install gradio==6.32.0 -r requirements.txt
python app.py
```
Open `http://127.0.0.1:7860`. Run `python -m unittest` to test the workflow with mocked model replies.