Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def sentiment_analysis(text):
|
|
72 |
# Advanced Analysis
|
73 |
# ---------------------------------------------------------------------------- #
|
74 |
|
75 |
-
|
76 |
analysis_prompt = f"Analyze the question of the user '{query}', analyze the response '{response_message}' and provide a JSON that includes: the user's intent, up to four follow-up questions, the entities in the response."
|
77 |
analysis_response = ai.prompt(message=analysis_prompt)
|
78 |
return analysis_response
|
|
|
72 |
# Advanced Analysis
|
73 |
# ---------------------------------------------------------------------------- #
|
74 |
|
75 |
+
def advanced_analysis(query, response_message):
|
76 |
analysis_prompt = f"Analyze the question of the user '{query}', analyze the response '{response_message}' and provide a JSON that includes: the user's intent, up to four follow-up questions, the entities in the response."
|
77 |
analysis_response = ai.prompt(message=analysis_prompt)
|
78 |
return analysis_response
|