Spaces:
Runtime error
Runtime error
Update openai_assistant_langchain_gradio.py
Browse files
openai_assistant_langchain_gradio.py
CHANGED
|
@@ -72,7 +72,12 @@ def openai_response(message,history):
|
|
| 72 |
elif message == "Help me Interview the Freelancers":
|
| 73 |
context = "Create 5 questions for an interview focusing on the skills required for this project."
|
| 74 |
response = execute_agent(agent, tools, {"content": context, "thread_id": thread_id})
|
| 75 |
-
option_1 = "-> **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
elif message == "Generate new Milestones":
|
| 77 |
context = "Create a list of key stages for this software development project, ensuring there are no more than six milestones."
|
| 78 |
response = execute_agent(agent, tools, {"content": context, "thread_id": thread_id})
|
|
@@ -82,8 +87,12 @@ def openai_response(message,history):
|
|
| 82 |
context = "Please assess the work quality for the milestone in relation to this project. Below is the provided code sample: "
|
| 83 |
enriched_message = context + message
|
| 84 |
response = execute_agent(agent, tools, {"content": enriched_message, "thread_id": thread_id})
|
| 85 |
-
option_1 = "-> **
|
| 86 |
-
option_2 = "-> **
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
elif message == "Generate new Contract":
|
| 88 |
context = "Create a contract for the project, including the key stages, milestones, and payment terms."
|
| 89 |
response = execute_agent(agent, tools, {"content": context, "thread_id": thread_id})
|
|
|
|
| 72 |
elif message == "Help me Interview the Freelancers":
|
| 73 |
context = "Create 5 questions for an interview focusing on the skills required for this project."
|
| 74 |
response = execute_agent(agent, tools, {"content": context, "thread_id": thread_id})
|
| 75 |
+
option_1 = "-> **Kick off New Project**"
|
| 76 |
+
option_2 = "-> **Search for Freelancers**"
|
| 77 |
+
option_3 = "-> **Generate new Milestones**"
|
| 78 |
+
option_4 = "-> **Generate new Contract**"
|
| 79 |
+
option_5 = "-> **Evaluate a Milestone: <Paste code here>**"
|
| 80 |
+
option_6 = "-> **Restart Conversation**"
|
| 81 |
elif message == "Generate new Milestones":
|
| 82 |
context = "Create a list of key stages for this software development project, ensuring there are no more than six milestones."
|
| 83 |
response = execute_agent(agent, tools, {"content": context, "thread_id": thread_id})
|
|
|
|
| 87 |
context = "Please assess the work quality for the milestone in relation to this project. Below is the provided code sample: "
|
| 88 |
enriched_message = context + message
|
| 89 |
response = execute_agent(agent, tools, {"content": enriched_message, "thread_id": thread_id})
|
| 90 |
+
option_1 = "-> **Kick off New Project**"
|
| 91 |
+
option_2 = "-> **Search for Freelancers**"
|
| 92 |
+
option_3 = "-> **Generate new Milestones**"
|
| 93 |
+
option_4 = "-> **Generate new Contract**"
|
| 94 |
+
option_5 = "-> **Evaluate a Milestone: <Paste code here>**"
|
| 95 |
+
option_6 = "-> **Restart Conversation**"
|
| 96 |
elif message == "Generate new Contract":
|
| 97 |
context = "Create a contract for the project, including the key stages, milestones, and payment terms."
|
| 98 |
response = execute_agent(agent, tools, {"content": context, "thread_id": thread_id})
|