tosin2013 commited on
Commit
7e1e3c5
·
1 Parent(s): 1c03e6c

updating formatting

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -15,11 +15,10 @@ from huggingface_hub import InferenceClient
15
  # Configuration
16
 
17
  # Sample questions:
18
-
19
- 1. **What are the key features of AutoGen v0.4 that I should utilize when converting user requests into agent code?**
20
- 2. **How can I leverage asynchronous messaging in AutoGen v0.4 to enhance my agents performance?**
21
- 3. **What are best practices for writing modular and extensible agent code using AutoGen v0.4?**
22
- 4. **Can you convert this user request into AutoGen v0.4 agent code: "Create an agent that classifies customer feedback into positive, negative, or neutral sentiments."**
23
 
24
  DEFAULT_QUESTION = "Ask me anything about converting user requests into AutoGen v0.4 agent code..."
25
 
@@ -87,7 +86,7 @@ def generate_response(question, history):
87
  messages = [
88
  {
89
  "role": "system",
90
- "content": "### MEMORY ###
91
  Recall all previously provided instructions, context, and data throughout this conversation to ensure consistency and coherence. Use the details from the last interaction to guide your response.
92
 
93
  ### VISIONARY GUIDANCE ###
@@ -124,7 +123,7 @@ Provide the AutoGen v0.4 agent code that fulfills the user's request. Utilize fe
124
  - Ensure the code is scalable, modular, and adheres to best practices.
125
 
126
  ### START ###
127
- "
128
  },
129
  {
130
  "role": "user",
@@ -207,4 +206,4 @@ with gr.Blocks() as demo:
207
  )
208
 
209
  if __name__ == "__main__":
210
- demo.launch()
 
15
  # Configuration
16
 
17
  # Sample questions:
18
+ # 1. What are the key features of AutoGen v0.4 that I should utilize when converting user requests into agent code?
19
+ # 2. How can I leverage asynchronous messaging in AutoGen v0.4 to enhance my agents performance?
20
+ # 3. What are best practices for writing modular and extensible agent code using AutoGen v0.4?
21
+ # 4. Can you convert this user request into AutoGen v0.4 agent code: "Create an agent that classifies customer feedback into positive, negative, or neutral sentiments."
 
22
 
23
  DEFAULT_QUESTION = "Ask me anything about converting user requests into AutoGen v0.4 agent code..."
24
 
 
86
  messages = [
87
  {
88
  "role": "system",
89
+ "content": '''### MEMORY ###
90
  Recall all previously provided instructions, context, and data throughout this conversation to ensure consistency and coherence. Use the details from the last interaction to guide your response.
91
 
92
  ### VISIONARY GUIDANCE ###
 
123
  - Ensure the code is scalable, modular, and adheres to best practices.
124
 
125
  ### START ###
126
+ '''
127
  },
128
  {
129
  "role": "user",
 
206
  )
207
 
208
  if __name__ == "__main__":
209
+ demo.launch()