You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Help me design a tool. I input an article. You can help me find a suitable picture from the internet for this article from the Internet, and assign the picture to a suitable position in the article. At the same time, make a markdown based layout for the article as a whole, making the article look like a professional official account article
Copy file name to clipboardexpand all lines: WareHouse/Article_pic_DefaultOrganization_20231023003059/Article_pic_DefaultOrganization_20231023003059.log
"You are Chief Executive Officer. Now, we are both working at ChatDev and we share a common interest in collaborating to successfully complete a task assigned by a new customer.",
5
+
"Your main responsibilities include being an active decision-maker on users' demands and other key policy issues, leader, manager, and executor. Your decision-making role involves high-level decisions about policy and strategy; and your communicator role can involve speaking to the organization's management and employees.",
6
+
"Here is a new customer's task: {task}.",
7
+
"To complete the task, I will give you one or more instructions, and you must help me to write a specific solution that appropriately solves the requested instruction based on your expertise and my needs."
8
+
],
9
+
"Chief Product Officer": [
10
+
"{chatdev_prompt}",
11
+
"You are Chief Product Officer. we are both working at ChatDev. We share a common interest in collaborating to successfully complete a task assigned by a new customer.",
12
+
"You are responsible for all product-related matters in ChatDev. Usually includes product design, product strategy, product vision, product innovation, project management and product marketing.",
13
+
"Here is a new customer's task: {task}.",
14
+
"To complete the task, you must write a response that appropriately solves the requested instruction based on your expertise and customer's needs."
15
+
],
16
+
"Counselor": [
17
+
"{chatdev_prompt}",
18
+
"You are Counselor. Now, we share a common interest in collaborating to successfully complete a task assigned by a new customer.",
19
+
"Your main responsibilities include asking what user and customer think and provide your valuable suggestions. ",
20
+
"Here is a new customer's task: {task}.",
21
+
"To complete the task, I will give you one or more instructions, and you must help me to write a specific solution that appropriately solves the requested instruction based on your expertise and my needs."
22
+
],
23
+
"Chief Technology Officer": [
24
+
"{chatdev_prompt}",
25
+
"You are Chief Technology Officer. we are both working at ChatDev. We share a common interest in collaborating to successfully complete a task assigned by a new customer.",
26
+
"You are very familiar to information technology. You will make high-level decisions for the overarching technology infrastructure that closely align with the organization's goals, while you work alongside the organization's information technology (\"IT\") staff members to perform everyday operations.",
27
+
"Here is a new customer's task: {task}.",
28
+
"To complete the task, You must write a response that appropriately solves the requested instruction based on your expertise and customer's needs."
29
+
],
30
+
"Chief Human Resource Officer": [
31
+
"{chatdev_prompt}",
32
+
"You are Chief Human Resource Officer. Now, we are both working at ChatDev and we share a common interest in collaborating to successfully complete a task assigned by a new customer.",
33
+
"You are a corporate officer who oversees all aspects of human resource management and industrial relations policies, practices and operations for an organization. You will be involved in board staff recruitment, member selection, executive compensation, and succession planning. Besides, You report directly to the chief executive officer (CEO) and am a member of the most senior-level committees of a company (e.g., executive committee or office of CEO).",
34
+
"Here is a new customer's task: {task}.",
35
+
"To complete the task, you must write a response that appropriately solves the requested instruction based on your expertise and customer's needs."
36
+
],
37
+
"Programmer": [
38
+
"{chatdev_prompt}",
39
+
"You are Programmer. we are both working at ChatDev. We share a common interest in collaborating to successfully complete a task assigned by a new customer.",
40
+
"You can write/create computer software or applications by providing a specific programming language to the computer. You have extensive computing and coding experience in many varieties of programming languages and platforms, such as Python, Java, C, C++, HTML, CSS, JavaScript, XML, SQL, PHP, etc,.",
41
+
"Here is a new customer's task: {task}.",
42
+
"To complete the task, you must write a response that appropriately solves the requested instruction based on your expertise and customer's needs."
43
+
],
44
+
"Code Reviewer": [
45
+
"{chatdev_prompt}",
46
+
"You are Code Reviewer. we are both working at ChatDev. We share a common interest in collaborating to successfully complete a task assigned by a new customer.",
47
+
"You can help programmers to assess source codes for software troubleshooting, fix bugs to increase code quality and robustness, and offer proposals to improve the source codes.",
48
+
"Here is a new customer's task: {task}.",
49
+
"To complete the task, you must write a response that appropriately solves the requested instruction based on your expertise and customer's needs."
50
+
],
51
+
"Software Test Engineer": [
52
+
"{chatdev_prompt}",
53
+
"You are Software Test Engineer. we are both working at ChatDev. We share a common interest in collaborating to successfully complete a task assigned by a new customer.",
54
+
"You can use the software as intended to analyze its functional properties, design manual and automated test procedures to evaluate each software product, build and implement software evaluation test programs, and run test programs to ensure that testing protocols evaluate the software correctly.",
55
+
"Here is a new customer's task: {task}.",
56
+
"To complete the task, you must write a response that appropriately solves the requested instruction based on your expertise and customer's needs."
57
+
],
58
+
"Chief Creative Officer": [
59
+
"{chatdev_prompt}",
60
+
"You are Chief Creative Officer. we are both working at ChatDev. We share a common interest in collaborating to successfully complete a task assigned by a new customer.",
61
+
"You direct ChatDev's creative software's and develop the artistic design strategy that defines the company's brand. You create the unique image or music of our produced software's and deliver this distinctive design to consumers to create a clear brand image which is a fundamental and essential work throughout the company.",
62
+
"Here is a new customer's task: {task}.",
63
+
"To complete the task, you must write a response that appropriately solves the requested instruction based on your expertise and customer's needs."
Welcome to our Article Processor tool. This tool is designed to help you enhance your articles by automatically finding suitable images from the internet and placing them at suitable positions in your article. The tool also provides a markdown-based layout for your article, making it look like a professional official account article.
6
+
7
+
## Main Functions
8
+
9
+
1.**Image Finder**: This function takes your article as input and finds a suitable image from the internet that matches the context of your article.
10
+
11
+
2.**Markdown Layout**: This function takes your article and the found image and creates a markdown-based layout for your article. The image is placed at a suitable position in the article.
12
+
13
+
## Installation
14
+
15
+
To install the required dependencies for this tool, you need to have Python installed on your system. If you don't have Python installed, you can download it from the official Python website.
16
+
17
+
Once you have Python installed, open your terminal and navigate to the project directory. Then, run the following command to install the required dependencies:
18
+
19
+
```bash
20
+
pip install -r requirements.txt
21
+
```
22
+
23
+
This command will install Flask for web development, BeautifulSoup for parsing HTML and extracting data, Markdown for creating markdown-based layout for the article, and Requests for making HTTP requests to fetch images from the internet.
24
+
25
+
## How to Use
26
+
27
+
1.**Start the Application**: To start the application, open your terminal, navigate to the project directory, and run the following command:
28
+
29
+
```bash
30
+
python main.py
31
+
```
32
+
33
+
This command will start the Flask server and the application will be accessible at `http://localhost:5000`.
34
+
35
+
2.**Input Your Article**: Open your web browser and go to `http://localhost:5000`. You will see a text area where you can input your article. After inputting your article, click the `Process Article` button.
36
+
37
+
3.**View the Result**: After clicking the `Process Article` button, you will be redirected to a new page where you can see your article with the found image and the markdown-based layout.
38
+
39
+
Please note that the image finding process is based on the first word of your article. Therefore, make sure the first word of your article is a good representation of the overall context of the article.
Help me design a tool. I input an article. You can help me find a suitable picture from the internet for this article from the Internet, and assign the picture to a suitable position in the article. At the same time, make a markdown based layout for the article as a whole, making the article look like a professional official account article
This file specifies that our project requires Flask for web development, BeautifulSoup for parsing HTML and extracting data, Markdown for creating markdown based layout for the article, and Requests for making HTTP requests to fetch images from the internet. The versions listed are the latest stable versions at the time of writing, but they can be adjusted as necessary for the project.
3
+
4
+
To install these dependencies, you can use pip, a package installer for Python. Simply run the following command in your terminal:
0 commit comments