Spaces:
Runtime error
Runtime error
Update app.py
Browse filesReplacing sample PDF file and associated sample questions with a smaller file (slow to index on **free CPU** provided by Hugging Face).
app.py
CHANGED
|
@@ -85,7 +85,7 @@ with gr.Blocks() as demo:
|
|
| 85 |
with gr.Row():
|
| 86 |
upload_files = gr.File(
|
| 87 |
label="Upload PDF files to index", file_count="multiple",
|
| 88 |
-
value=["
|
| 89 |
scale=5)
|
| 90 |
build_status = gr.Textbox(label="Build status", placeholder="", scale=2)
|
| 91 |
|
|
@@ -112,11 +112,14 @@ with gr.Blocks() as demo:
|
|
| 112 |
with gr.Accordion("Sample questions", open=False):
|
| 113 |
gr.Examples(
|
| 114 |
[
|
| 115 |
-
["What
|
| 116 |
-
["
|
| 117 |
-
["How
|
| 118 |
-
["What are
|
| 119 |
-
["
|
|
|
|
|
|
|
|
|
|
| 120 |
],
|
| 121 |
inputs=[question,],
|
| 122 |
outputs=[response, references, snippets],
|
|
|
|
| 85 |
with gr.Row():
|
| 86 |
upload_files = gr.File(
|
| 87 |
label="Upload PDF files to index", file_count="multiple",
|
| 88 |
+
value=["OECD_Dividend_tax_fraud_2023-en.pdf",],
|
| 89 |
scale=5)
|
| 90 |
build_status = gr.Textbox(label="Build status", placeholder="", scale=2)
|
| 91 |
|
|
|
|
| 112 |
with gr.Accordion("Sample questions", open=False):
|
| 113 |
gr.Examples(
|
| 114 |
[
|
| 115 |
+
["What is dividend stripping?",],
|
| 116 |
+
["What are the most common types of dividend stripping schemes?",],
|
| 117 |
+
["How do authorities detect dividend stripping?",],
|
| 118 |
+
["What are some indicators of potential dividend stripping?",],
|
| 119 |
+
["What are the consequences of dividend stripping?",],
|
| 120 |
+
["How can countries combat dividend stripping?",],
|
| 121 |
+
["What is the role of professional enablers in dividend stripping?",],
|
| 122 |
+
["How can countries address the role of professional enablers in dividend stripping?",],
|
| 123 |
],
|
| 124 |
inputs=[question,],
|
| 125 |
outputs=[response, references, snippets],
|