Spaces:
Running
Running
Commit
·
a1fc690
1
Parent(s):
49e5ccd
Refine Prompt
Browse files
screencoder/html_generator.py
CHANGED
@@ -41,7 +41,7 @@ def get_prompt_dict(instructions):
|
|
41 |
# only return the code within the <div> and </div> tags""",
|
42 |
# }
|
43 |
return {
|
44 |
-
"sidebar": f"""这是一个container的截图。这是用户给的额外要求:{instructions["sidebar"]}请填写一段完整的HTML和tail-wind CSS
|
45 |
|
46 |
<div>
|
47 |
your code here
|
|
|
41 |
# only return the code within the <div> and </div> tags""",
|
42 |
# }
|
43 |
return {
|
44 |
+
"sidebar": f"""这是一个container的截图。这是用户给的额外要求:{instructions["sidebar"]}请填写一段完整的HTML和tail-wind CSS代码以准确再现给定的容器。请注意所有组块的排版、图标样式、大小、文字信息需要在用户额外条件的基础上与原始截图基本保持一致。对于小图标,请保持生成的svg图标和原图一致。请使用相同大小、位置的纯灰色图像块并标记为"bg-gray-400"代替大的图片,注意代码中的大小和位置信息。以下是供填写的代码:
|
45 |
|
46 |
<div>
|
47 |
your code here
|