Update app.py
Browse files
app.py
CHANGED
@@ -132,21 +132,8 @@ with gr.Blocks() as demo:
|
|
132 |
btn.click(respond, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
133 |
msg.submit(respond, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
134 |
|
135 |
-
gr.Markdown("
|
136 |
-
|
137 |
-
example_ls = gr.Dataset(components=[gr.Textbox(visible=False)],
|
138 |
-
label="Examples",
|
139 |
-
samples=[
|
140 |
-
"docs/finance/Week_1_Intro.pdf",
|
141 |
-
"docs/finance/Week_2_Time_Value_of_Money.pdf",
|
142 |
-
"docs/finance/Week_3_Valuation_of_Bonds_and_Stocks.pdf",
|
143 |
-
]
|
144 |
-
)
|
145 |
-
|
146 |
-
|
147 |
-
example_ls.click(augment_llm_with_docs,upload_pdfs).then(respond, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
148 |
-
gr.Markdown("""The examples let you input one file at a time but when uploading your own files,
|
149 |
-
you can upload multiple files. \n With the week 1 intro file an example of a question you
|
150 |
can ask is ***'What are some prerequisites of this class?'*** and a potential follow up question could be
|
151 |
***'Okay, how about the main topics this class covers?'*** With all 3 files uploaded, you could
|
152 |
first ask these questions, then dive deeper into the topics such as asking to know more about the time
|
|
|
132 |
btn.click(respond, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
133 |
msg.submit(respond, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
134 |
|
135 |
+
gr.Markdown("""For example pdf documents, in the files section, you can go to the "docs/finance" folder
|
136 |
+
and choose the file(s) there to upload. \n With the week 1 intro file an example of a question you
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
can ask is ***'What are some prerequisites of this class?'*** and a potential follow up question could be
|
138 |
***'Okay, how about the main topics this class covers?'*** With all 3 files uploaded, you could
|
139 |
first ask these questions, then dive deeper into the topics such as asking to know more about the time
|