Spaces:
Sleeping
Sleeping
InvictusRudra
commited on
Commit
•
3256f02
1
Parent(s):
7ff6dfb
Upload app1.ipynb
Browse files- app1.ipynb +2 -2
app1.ipynb
CHANGED
@@ -238,11 +238,11 @@
|
|
238 |
"def qa_result(_):\n",
|
239 |
" # saving pdf as a temp file\n",
|
240 |
" if file_input.value is not None:\n",
|
241 |
-
" file_input.save(\"
|
242 |
"\n",
|
243 |
" prompt_text = prompt.value\n",
|
244 |
" if prompt_text:\n",
|
245 |
-
" result = qa(file=\"
|
246 |
" convos.extend([\n",
|
247 |
" pn.Row(\n",
|
248 |
" pn.panel(\"Q: \", width=10),\n",
|
|
|
238 |
"def qa_result(_):\n",
|
239 |
" # saving pdf as a temp file\n",
|
240 |
" if file_input.value is not None:\n",
|
241 |
+
" file_input.save(\"temp.pdf\")\n",
|
242 |
"\n",
|
243 |
" prompt_text = prompt.value\n",
|
244 |
" if prompt_text:\n",
|
245 |
+
" result = qa(file=\"temp.pdf\", query=prompt_text)\n",
|
246 |
" convos.extend([\n",
|
247 |
" pn.Row(\n",
|
248 |
" pn.panel(\"Q: \", width=10),\n",
|