Spaces:
Running
Running
feat(code): Update default model and examples
Browse files- Set the default model for code generation to "Faster".
- Add "Write a hello world alert" as the first example for both HTML and Gradio code generation, while keeping existing examples.
- tab_code.py +4 -2
tab_code.py
CHANGED
|
@@ -261,15 +261,17 @@ def create_code_tab():
|
|
| 261 |
fullscreen_state = gr.State(False)
|
| 262 |
|
| 263 |
html_examples = [
|
|
|
|
| 264 |
"Create a Canvas animation of continuous colorful fireworks blooming on a black background.",
|
| 265 |
"Generate a Canvas special effect with iridescent light streams.",
|
| 266 |
"Design a particle system Canvas animation that interacts with the mouse.",
|
| 267 |
"Implement a classic snake game using HTML Canvas.",
|
| 268 |
-
"Create a Canvas animation simulating the 'Elephant
|
| 269 |
"Create a dreamy low-poly floating island scene with dynamic lighting and soft animations in a single HTML file. Use a suitable drawing js library, such as three.js.",
|
| 270 |
]
|
| 271 |
|
| 272 |
gradio_examples = [
|
|
|
|
| 273 |
"Create a simple calculator that supports addition, subtraction, multiplication, and division",
|
| 274 |
"Create a simple Gradio application that displays 'Hello, Gradio!'",
|
| 275 |
"Create an image classification application that can classify uploaded images",
|
|
@@ -292,7 +294,7 @@ def create_code_tab():
|
|
| 292 |
gr.Markdown("### 2. Select Model")
|
| 293 |
model_choice_radio = gr.Radio(
|
| 294 |
["Better (using Ling-1T)", "Faster (using Ring-flash-2.0)"],
|
| 295 |
-
value="
|
| 296 |
label="Model Selection"
|
| 297 |
)
|
| 298 |
|
|
|
|
| 261 |
fullscreen_state = gr.State(False)
|
| 262 |
|
| 263 |
html_examples = [
|
| 264 |
+
"Write a hello world alert",
|
| 265 |
"Create a Canvas animation of continuous colorful fireworks blooming on a black background.",
|
| 266 |
"Generate a Canvas special effect with iridescent light streams.",
|
| 267 |
"Design a particle system Canvas animation that interacts with the mouse.",
|
| 268 |
"Implement a classic snake game using HTML Canvas.",
|
| 269 |
+
"Create a Canvas animation simulating the 'Elephant\\\'s Toothpaste' chemical experiment: in a container, colored foam continuously and rapidly gushes out, expands, and overflows, filling the entire screen. Use a suitable drawing js library, such as three.js.",
|
| 270 |
"Create a dreamy low-poly floating island scene with dynamic lighting and soft animations in a single HTML file. Use a suitable drawing js library, such as three.js.",
|
| 271 |
]
|
| 272 |
|
| 273 |
gradio_examples = [
|
| 274 |
+
"Write a hello world alert",
|
| 275 |
"Create a simple calculator that supports addition, subtraction, multiplication, and division",
|
| 276 |
"Create a simple Gradio application that displays 'Hello, Gradio!'",
|
| 277 |
"Create an image classification application that can classify uploaded images",
|
|
|
|
| 294 |
gr.Markdown("### 2. Select Model")
|
| 295 |
model_choice_radio = gr.Radio(
|
| 296 |
["Better (using Ling-1T)", "Faster (using Ring-flash-2.0)"],
|
| 297 |
+
value="Faster (using Ring-flash-2.0)",
|
| 298 |
label="Model Selection"
|
| 299 |
)
|
| 300 |
|