Tigasturned commited on
Commit
83482d0
·
verified ·
1 Parent(s): e2b422c

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +7 -6
config.py CHANGED
@@ -1,10 +1,11 @@
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.
@@ -75,7 +76,7 @@ EXAMPLES = [
75
  {
76
  "title": "Pokémon SVG",
77
  "description":
78
- "Help me to generate an SVG of 5 Pokémons, include details."
79
  },
80
  {
81
  "title":
@@ -87,7 +88,7 @@ EXAMPLES = [
87
  "title":
88
  "TODO list",
89
  "description":
90
- "I want a TODO list that allows me to add tasks, delete tasks, and I would like the overall color theme to be purple."
91
  },
92
  ]
93
 
@@ -97,4 +98,4 @@ DEFAULT_THEME = {
97
  "token": {
98
  "colorPrimary": "#6A57FF",
99
  }
100
- }
 
1
  import os
2
 
3
+ API_KEY = os.getenv('HF_TOKEN') # Using HF_TOKEN which is automatically provided in Hugging Face Spaces
4
 
5
+ MODEL = "zai-org/GLM-4.5" # Using the full model path on Hugging Face
6
 
7
+ # Using Hugging Face's free Inference API
8
+ ENDPOINT = "https://api-inference.huggingface.co/models/"
9
 
10
  SYSTEM_PROMPT = """You are an expert on frontend design, you will always respond to web design tasks.
11
  Your task is to create a website according to the user's request using either native HTML or React framework.
 
76
  {
77
  "title": "Pokémon SVG",
78
  "description":
79
+ "Help me to generate an SVG of 5 Pokémons, include details.",
80
  },
81
  {
82
  "title":
 
88
  "title":
89
  "TODO list",
90
  "description":
91
+ "I want a TODO list that allows me to add tasks, delete tasks, and I would like the overall color theme to be purple.",
92
  },
93
  ]
94
 
 
98
  "token": {
99
  "colorPrimary": "#6A57FF",
100
  }
101
+ }