Spaces:
Running
Running
Download app.py from mimi800/coder-backend-ai: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/mimi800/coder-backend-ai/resolve/main/app.py
- Command line
-
hf download hf://spaces/mimi800/coder-backend-ai/app.py
-
curl -L -o app.py https://huggingface.co/spaces/mimi800/coder-backend-ai/resolve/main/app.py
413 Bytes
| import gradio as gr | |
| from utils import generate | |
| interface = gr.Interface( | |
| fn=generate, | |
| inputs=[ | |
| gr.Textbox(label="Prompt", lines=5), | |
| gr.Number(label="Max Tokens", value=100) | |
| ], | |
| outputs=gr.Textbox(label="Response"), | |
| title="🧠 Qwen2-0.5B Raw API", | |
| description="Raw access to the Qwen2-0.5B model. Send your full prompt." | |
| ) | |
| if __name__ == "__main__": | |
| interface.launch() |