Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ import concurrent.futures
|
|
| 13 |
|
| 14 |
# Define the tokenizer and model
|
| 15 |
tokenizer = GPT2Tokenizer.from_pretrained('gpt2-medium')
|
| 16 |
-
model = openai.api_key = os.environ["
|
| 17 |
|
| 18 |
# Define the initial message and messages list
|
| 19 |
initial_message = {"role": "system", "content": 'You are a USMLE Tutor. Respond with ALWAYS layered "bullet points" (listing rather than sentences) to all input with a fun mneumonics to memorize that list. But you can answer up to 1200 words if the user requests longer response.'}
|
|
@@ -23,7 +23,7 @@ messages = [initial_message]
|
|
| 23 |
answer_count = 0
|
| 24 |
|
| 25 |
# Define the Notion API key
|
| 26 |
-
API_KEY = os.environ["
|
| 27 |
|
| 28 |
def transcribe(audio, text):
|
| 29 |
global messages
|
|
|
|
| 13 |
|
| 14 |
# Define the tokenizer and model
|
| 15 |
tokenizer = GPT2Tokenizer.from_pretrained('gpt2-medium')
|
| 16 |
+
model = openai.api_key = os.environ["OAPI_KEY"]
|
| 17 |
|
| 18 |
# Define the initial message and messages list
|
| 19 |
initial_message = {"role": "system", "content": 'You are a USMLE Tutor. Respond with ALWAYS layered "bullet points" (listing rather than sentences) to all input with a fun mneumonics to memorize that list. But you can answer up to 1200 words if the user requests longer response.'}
|
|
|
|
| 23 |
answer_count = 0
|
| 24 |
|
| 25 |
# Define the Notion API key
|
| 26 |
+
API_KEY = os.environ["NAPI_KEY"]
|
| 27 |
|
| 28 |
def transcribe(audio, text):
|
| 29 |
global messages
|