Spaces:
Running
Running
Download app_qwen.py from akhaliq/anycoder: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/spaces/akhaliq/anycoder/resolve/7a99071d2626f30bbc3e0ffec1ca9e7f6ba55ee6/app_qwen.py
- Command line
-
hf download hf://spaces/akhaliq/anycoder@7a99071d2626f30bbc3e0ffec1ca9e7f6ba55ee6/app_qwen.py
-
curl -L -o app_qwen.py https://huggingface.co/spaces/akhaliq/anycoder/resolve/7a99071d2626f30bbc3e0ffec1ca9e7f6ba55ee6/app_qwen.py
506 Bytes
| import os | |
| import dashscope_gradio | |
| from utils import get_app | |
| demo = get_app( | |
| models=[ | |
| "qwen-turbo-latest", | |
| "qwen-turbo", | |
| "qwen-plus", | |
| "qwen-max", | |
| "qwen1.5-110b-chat", | |
| "qwen1.5-72b-chat", | |
| "qwen1.5-32b-chat", | |
| "qwen1.5-14b-chat", | |
| "qwen1.5-7b-chat", | |
| ], | |
| default_model="qwen-turbo-latest", | |
| src=dashscope_gradio.registry, | |
| accept_token=not os.getenv("DASHSCOPE_API_KEY"), | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |