Spaces:
Sleeping
Sleeping
K Mohith Goud commited on
Commit ·
e59cafb
1
Parent(s): aba63c5
ad demo file thing
Browse filesFiles changed (6)
128 unmodified lines129130131132133134135136137138139140141142143144128 unmodified lines# Reset the checkbox after the operationif submit_button and uploaded_file and generate_questions_checkbox:query = f"Generate 5 flashcard questions based Context: {query}"st.write(query)if uploaded_file:dataset_directory = "dataset"file_path = save_uploaded_file(uploaded_file, dataset_directory)documents = load_pdfs_from_file(file_path)chain = initialize_model(documents)agent = ConversationalAgent(chain)if documents:response, Source = agent.ask(query)add_query_response(query, response)128 unmodified lines129130131132133134135136137138128 unmodified lines# Reset the checkbox after the operationif submit_button and generate_questions_checkbox and (uploaded_file or use_demo):query = f"Generate 5 flashcard questions based Context: {query}"st.write(query)if agent:response, Source = agent.ask(query)add_query_response(query, response)
123version https://git-lfs.github.com/spec/v1oid sha256:d3c9fd302f000d7790aa403c2d0d8fec363fe46f30b07d53020b6e33b22435a9size 1676000123version https://git-lfs.github.com/spec/v1oid sha256:e87a1dc8bcae6f2c4bea6d5dd5005454d4dace8637dae29bff3c037ea771411esize 100123version https://git-lfs.github.com/spec/v1oid sha256:59e2db322aa57e47240330f56e4781a04f899606df79abd3737385266c10c098size 4000123version https://git-lfs.github.com/spec/v1oid sha256:38634f99624104ecee6f5d597a68fadee0c06b3c96a40608a84fb699f0edbfabsize 4554752app.py+2-8
dataset/3aa69546-0c10-4da7-badc-6d7a58cb729f/data_level0.binAdded+3
dataset/3aa69546-0c10-4da7-badc-6d7a58cb729f/header.binAdded+3
dataset/3aa69546-0c10-4da7-badc-6d7a58cb729f/length.binAdded+3
dataset/3aa69546-0c10-4da7-badc-6d7a58cb729f/link_lists.binAdded
dataset/chroma.sqlite3Added+3