Halo
commited on
Commit
•
07f5362
1
Parent(s):
57e6c41
Update app
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def load_recommender(path, start_page=1):
|
|
99 |
return 'Corpus Loaded.'
|
100 |
|
101 |
|
102 |
-
def generate_text(openAI_key, prompt, question,
|
103 |
openai.api_key = openAI_key
|
104 |
if model_name.startswith('gpt'):
|
105 |
completions = openai.ChatCompletion.create(
|
|
|
99 |
return 'Corpus Loaded.'
|
100 |
|
101 |
|
102 |
+
def generate_text(openAI_key, prompt, question, model_name="gpt-3.5-turbo"):
|
103 |
openai.api_key = openAI_key
|
104 |
if model_name.startswith('gpt'):
|
105 |
completions = openai.ChatCompletion.create(
|