Skip to content

Commit

Permalink
Views
Browse files Browse the repository at this point in the history
  • Loading branch information
CrzyHAX91 committed Dec 14, 2024
1 parent 78c86c6 commit e9f690b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dropship_project/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ def post(self, request):
response = generate_response(user_query) # Placeholder for AI response generation
return JsonResponse({'response': response})

def generate_response(query):
# Placeholder function for generating AI responses
return "This is a placeholder response for your query: " + query
# Remove duplicate function definition

def post(self, request):
user_query = request.POST.get('query', '')
Expand All @@ -97,7 +95,8 @@ def generate_response(query):
return "This is a placeholder response for your query: " + queryimport # type: ignore

# Create a logger
logger = login.getLogger(__name__)
import logging
logger = logging.getLogger(__name__)

# Set the logging level
logger.setLevel(login.INFO)
Expand Down

0 comments on commit e9f690b

Please sign in to comment.