Spaces:
Sleeping
Sleeping
Keane Moraes
commited on
Commit
•
e7a97b9
1
Parent(s):
f045521
removed title file read
Browse files
app.py
CHANGED
@@ -348,8 +348,7 @@ with tab6:
|
|
348 |
text_embedding = get_embedding_text(user_input)
|
349 |
print("the folder name at got here 1.5 is ", folder_name)
|
350 |
print("got here 2")
|
351 |
-
|
352 |
-
title = json.load(f)['title']
|
353 |
string_title = "\n\n###\n\n".join(title)
|
354 |
user_input_embedding = 'Using this context: "'+string_title+'. '+text_embedding+'", answer the following question. \n'+user_input
|
355 |
print("got here 3")
|
|
|
348 |
text_embedding = get_embedding_text(user_input)
|
349 |
print("the folder name at got here 1.5 is ", folder_name)
|
350 |
print("got here 2")
|
351 |
+
title = data_transcription['title']
|
|
|
352 |
string_title = "\n\n###\n\n".join(title)
|
353 |
user_input_embedding = 'Using this context: "'+string_title+'. '+text_embedding+'", answer the following question. \n'+user_input
|
354 |
print("got here 3")
|