Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -186,19 +186,6 @@ def chat_with_file_contents(prompt, file_content, model_choice='gpt-3.5-turbo'):
|
|
186 |
response = openai.ChatCompletion.create(model=model_choice, messages=conversation)
|
187 |
return response['choices'][0]['message']['content']
|
188 |
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
def extract_text_from_pdfs(pdf_docs):
|
203 |
text = ""
|
204 |
for pdf in pdf_docs:
|
|
|
186 |
response = openai.ChatCompletion.create(model=model_choice, messages=conversation)
|
187 |
return response['choices'][0]['message']['content']
|
188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
def extract_text_from_pdfs(pdf_docs):
|
190 |
text = ""
|
191 |
for pdf in pdf_docs:
|