Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,7 @@ def generate_filename(prompt, file_type):
|
|
151 |
return f"{safe_date_time}_{safe_prompt}.{file_type}"
|
152 |
|
153 |
# Chat and Chat with files
|
154 |
-
|
155 |
model = model_choice
|
156 |
conversation = [{'role': 'system', 'content': 'You are a helpful assistant.'}]
|
157 |
conversation.append({'role': 'user', 'content': prompt})
|
|
|
151 |
return f"{safe_date_time}_{safe_prompt}.{file_type}"
|
152 |
|
153 |
# Chat and Chat with files
|
154 |
+
def chat_with_model(prompt, document_section, model_choice='gpt-3.5-turbo'):
|
155 |
model = model_choice
|
156 |
conversation = [{'role': 'system', 'content': 'You are a helpful assistant.'}]
|
157 |
conversation.append({'role': 'user', 'content': prompt})
|