Skip to content

Commit

Permalink
Refactor the way how we send language to prompt generation
Browse files Browse the repository at this point in the history
  • Loading branch information
John Cordeiro authored and John Cordeiro committed Feb 5, 2024
1 parent 227f58b commit b5627a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bothub/api/v2/zeroshot/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ def post(self, request):

prompt_formatter = FormatPrompt()

data["language"] = prompt_formatter.get_language(data.get("language", "pt-br"))

prompt = prompt_formatter.generate_prompt(data.get("language"), data)
prompt = prompt_formatter.generate_prompt(data.get("language", "por"), data)

body = {
"input": {
Expand Down

0 comments on commit b5627a7

Please sign in to comment.