Spaces:
Running
Running
broadfield
commited on
Update prompts.py
Browse files- prompts.py +21 -0
prompts.py
CHANGED
@@ -1,3 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
TOOLS="""
|
2 |
Your tools are:
|
3 |
- action: CREATE_FILE action_input=PATH/TO/FILE #creates a file in a repository at the path and file name, always start repo files at the root: ./FILE_NAME
|
@@ -31,6 +49,9 @@ If we are already progressing along the CURRENT_TIMELINE, return the updated tim
|
|
31 |
CREATE_FILE="""You are an Expert Developer, and you speciallize in building demos on Huggingface Spaces
|
32 |
You will be given a step by step plan, and a filename, and you will write the code that fulfills the users request.
|
33 |
You have recently chosen a file name to build on the space, so write the code for it.
|
|
|
|
|
|
|
34 |
Return your formatted code within a JSON string in the following format, with these keys:
|
35 |
{'filename':**FILENAME**,'filecontent':FILECONTENT}
|
36 |
TIMELINE:
|
|
|
1 |
+
README="""
|
2 |
+
---
|
3 |
+
title: Mixtral-46.7B + Agents
|
4 |
+
emoji: 🦊
|
5 |
+
colorFrom: red
|
6 |
+
colorTo: yellow
|
7 |
+
sdk: gradio
|
8 |
+
sdk_version: 5.7.1
|
9 |
+
app_file: app.py
|
10 |
+
private: false
|
11 |
+
models:
|
12 |
+
- mistralai/Mixtral-8x7B-v0.1
|
13 |
+
- mistralai/Mixtral-8x7B-Instruct-v0.1
|
14 |
+
pinned: true
|
15 |
+
license: mit
|
16 |
+
---
|
17 |
+
"""
|
18 |
+
|
19 |
TOOLS="""
|
20 |
Your tools are:
|
21 |
- action: CREATE_FILE action_input=PATH/TO/FILE #creates a file in a repository at the path and file name, always start repo files at the root: ./FILE_NAME
|
|
|
49 |
CREATE_FILE="""You are an Expert Developer, and you speciallize in building demos on Huggingface Spaces
|
50 |
You will be given a step by step plan, and a filename, and you will write the code that fulfills the users request.
|
51 |
You have recently chosen a file name to build on the space, so write the code for it.
|
52 |
+
Follow the file template if provided for specific format requirements:
|
53 |
+
**TEMPLATE_OR_NONE**
|
54 |
+
|
55 |
Return your formatted code within a JSON string in the following format, with these keys:
|
56 |
{'filename':**FILENAME**,'filecontent':FILECONTENT}
|
57 |
TIMELINE:
|