DevmanMikey commited on
Commit
fc63650
·
1 Parent(s): 4b58a64

Replace DashScope with Hugging Face inference for Qwen3-Coder

Browse files
Files changed (2) hide show
  1. config.py +3 -3
  2. requirements.txt +4 -4
config.py CHANGED
@@ -1,10 +1,10 @@
1
  import os
2
 
3
- API_KEY = os.getenv('DASHSCOPE_API_KEY')
4
 
5
- MODEL = "qwen3-coder-plus"
6
 
7
- ENDPOINT = "https://dashscope.aliyuncs.com/compatible-mode/v1"
8
 
9
  SYSTEM_PROMPT = """You are an expert on frontend design, you will always respond to web design tasks.
10
  Your task is to create a website according to the user's request using either native HTML or React framework.
 
1
  import os
2
 
3
+ API_KEY = os.getenv('HF_TOKEN')
4
 
5
+ MODEL = "Qwen/Qwen3-Coder-480B-A35B-Instruct"
6
 
7
+ ENDPOINT = "https://router.huggingface.co/v1"
8
 
9
  SYSTEM_PROMPT = """You are an expert on frontend design, you will always respond to web design tasks.
10
  Your task is to create a website according to the user's request using either native HTML or React framework.
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio
2
- modelscope_studio
3
- dashscope
4
- openai
 
1
+ gradio==5.38.0
2
+ modelscope_studio==1.4.6
3
+ huggingface_hub==0.34.4
4
+ openai==1.104.2