Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishankoradia committed Mar 16, 2024
1 parent 91e44da commit 26f5903
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ def post(self, request, format=None):
if "file" not in request.data:
raise ValueError("Empty content")

openai.api_key = org.openai_key

file = request.data["file"]

pdf_reader = PdfReader(file)
Expand Down

0 comments on commit 26f5903

Please sign in to comment.