subashpoudel commited on
Commit
3e28687
·
1 Parent(s): 82379f9
src/genai/analytics_chatbot/utils/nodes.py CHANGED
@@ -156,11 +156,11 @@ class FetchDataNode:
156
 
157
  elif state['endpoint']== '/api/v1/audience/emoji-count':
158
  response = get_emoji_count(state,llm_gpt,url)
159
- return {'response:',response.json()}
160
 
161
  elif state['endpoint']== '/api/v1/audience/comment-quality':
162
  response = get_comment_quality(state,llm_gpt,url)
163
- return {'response:',response.json()}
164
 
165
  elif 'single_influencer_query' in state['query_type']:
166
  response = requests.get(url, params=state['parameters_values'],headers=self.headers)
 
156
 
157
  elif state['endpoint']== '/api/v1/audience/emoji-count':
158
  response = get_emoji_count(state,llm_gpt,url)
159
+ return {'response':response.json()}
160
 
161
  elif state['endpoint']== '/api/v1/audience/comment-quality':
162
  response = get_comment_quality(state,llm_gpt,url)
163
+ return {'response':response.json()}
164
 
165
  elif 'single_influencer_query' in state['query_type']:
166
  response = requests.get(url, params=state['parameters_values'],headers=self.headers)