Spaces:
Sleeping
Sleeping
ankur-bohra
commited on
Commit
•
0ee1e49
1
Parent(s):
52cab32
Fix formatting, flagged folders
Browse files- .gitignore +2 -1
- app.py +9 -4
.gitignore
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
.conda
|
2 |
temp*
|
3 |
__pycache__/
|
4 |
-
env/
|
|
|
|
1 |
.conda
|
2 |
temp*
|
3 |
__pycache__/
|
4 |
+
env/
|
5 |
+
flagged*/
|
app.py
CHANGED
@@ -200,12 +200,14 @@ with gr.Blocks(title="Automatic Reimbursement Tool Demo") as page:
|
|
200 |
show_intermediate = gr.Checkbox(
|
201 |
False,
|
202 |
label="Show intermediate outputs",
|
203 |
-
info="There are several intermediate steps in the process such as
|
|
|
|
|
204 |
)
|
205 |
share_result = gr.Checkbox(
|
206 |
True,
|
207 |
label="Share results",
|
208 |
-
info="Sharing your result with us will help us
|
209 |
interactive=True,
|
210 |
)
|
211 |
contact = gr.Textbox(
|
@@ -213,7 +215,8 @@ with gr.Blocks(title="Automatic Reimbursement Tool Demo") as page:
|
|
213 |
label="Contact",
|
214 |
interactive=True,
|
215 |
placeholder="Enter your email address",
|
216 |
-
info="Optionally, enter your email address to allow us to contact
|
|
|
217 |
visible=True,
|
218 |
)
|
219 |
share_result.change(show_share_contact, share_result, [contact])
|
@@ -225,7 +228,9 @@ with gr.Blocks(title="Automatic Reimbursement Tool Demo") as page:
|
|
225 |
category = gr.Dropdown(
|
226 |
value=None,
|
227 |
choices=Category.__members__.keys(),
|
228 |
-
label=f"Recognized category ({
|
|
|
|
|
229 |
show_label=True,
|
230 |
interactive=False,
|
231 |
)
|
|
|
200 |
show_intermediate = gr.Checkbox(
|
201 |
False,
|
202 |
label="Show intermediate outputs",
|
203 |
+
info="There are several intermediate steps in the process such as "
|
204 |
+
"preprocessing, OCR, chatbot interaction. You can choose to "
|
205 |
+
"show their results here.",
|
206 |
)
|
207 |
share_result = gr.Checkbox(
|
208 |
True,
|
209 |
label="Share results",
|
210 |
+
info="Sharing your result with us will help us improve this tool.",
|
211 |
interactive=True,
|
212 |
)
|
213 |
contact = gr.Textbox(
|
|
|
215 |
label="Contact",
|
216 |
interactive=True,
|
217 |
placeholder="Enter your email address",
|
218 |
+
info="Optionally, enter your email address to allow us to contact "
|
219 |
+
"you regarding your result.",
|
220 |
visible=True,
|
221 |
)
|
222 |
share_result.change(show_share_contact, share_result, [contact])
|
|
|
228 |
category = gr.Dropdown(
|
229 |
value=None,
|
230 |
choices=Category.__members__.keys(),
|
231 |
+
label=f"Recognized category ({
|
232 |
+
', '.join(Category.__members__.keys())
|
233 |
+
})",
|
234 |
show_label=True,
|
235 |
interactive=False,
|
236 |
)
|