Download app.py from truegleai/deepseek-coder-api: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/spaces/truegleai/deepseek-coder-api/resolve/main/app.py
- Command line
-
hf download hf://spaces/truegleai/deepseek-coder-api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/truegleai/deepseek-coder-api/resolve/main/app.py
357 Bytes
| import gradio as gr | |
| print("App starting...") | |
| def dummy_response(prompt, max_tokens=100): | |
| return f"Test response to: {prompt[:50]}..." | |
| demo = gr.Interface( | |
| fn=dummy_response, | |
| inputs=gr.Textbox(label="Prompt"), | |
| outputs=gr.Textbox(label="Response"), | |
| title="Test Space" | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch(server_name="0.0.0.0") | |