Skip to content

Commit

Permalink
added support for course json file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexj1701 committed Feb 28, 2024
1 parent 036b10f commit a2e3f57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/lib.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
from tenacity import retry, wait_random_exponential, stop_after_attempt
import os
from openai import OpenAI
import json

# Open the JSON file
with open('course_subjects.json', 'r') as file:
# Load the JSON data into a Python list
subjects = json.load(file)

tools = [
{
Expand Down

0 comments on commit a2e3f57

Please sign in to comment.