Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ agent = initialize_agent(
|
|
30 |
def azure_cert_bot(cert_name):
|
31 |
query = f"Microsoft Azure {cert_name} certification curriculum site:microsoft.com"
|
32 |
search_results = ddgs.run(query).split("\n")
|
33 |
-
prompt = f"Based on the following curriculum details, generate key questions and answers for the {cert_name} certification exam:\n{search_results}"
|
34 |
response = llm.invoke(prompt)
|
35 |
|
36 |
return search_results, response
|
|
|
30 |
def azure_cert_bot(cert_name):
|
31 |
query = f"Microsoft Azure {cert_name} certification curriculum site:microsoft.com"
|
32 |
search_results = ddgs.run(query).split("\n")
|
33 |
+
prompt = f"Based on the following curriculum details, generate key questions and answers in markdown format for the {cert_name} certification exam:\n{search_results}"
|
34 |
response = llm.invoke(prompt)
|
35 |
|
36 |
return search_results, response
|