Spaces:
Runtime error
Runtime error
feat: Describe application on the base script
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def patent_summarizer(patent_information, summaries_generated, min_char_abs, min
|
|
34 |
summary_options = ["Abstract", "Background", "Claims"]
|
35 |
iface = gr.Interface(
|
36 |
patent_summarizer,
|
37 |
-
theme="
|
38 |
examples=[
|
39 |
[
|
40 |
"US9820315B2",
|
@@ -65,7 +65,9 @@ iface = gr.Interface(
|
|
65 |
lines=1),
|
66 |
# gr.inputs.Radio(["Link", "Patent Code"]), # Can be figured out automatically via parsing
|
67 |
# gr.inputs.Dropdown(["model type 1", "model type 2", "model type 3"]), # Change model type
|
68 |
-
gr.inputs.CheckboxGroup(summary_options,
|
|
|
|
|
69 |
gr.inputs.Slider(minimum=50,
|
70 |
maximum=500,
|
71 |
step=1,
|
@@ -87,8 +89,18 @@ iface = gr.Interface(
|
|
87 |
gr.outputs.Textbox(label="Background Summary"),
|
88 |
gr.outputs.Textbox(label="Claims Summary")
|
89 |
],
|
90 |
-
title="Patent Summarizer
|
91 |
description="""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
"""
|
93 |
)
|
94 |
|
|
|
34 |
summary_options = ["Abstract", "Background", "Claims"]
|
35 |
iface = gr.Interface(
|
36 |
patent_summarizer,
|
37 |
+
theme="huggingface",
|
38 |
examples=[
|
39 |
[
|
40 |
"US9820315B2",
|
|
|
65 |
lines=1),
|
66 |
# gr.inputs.Radio(["Link", "Patent Code"]), # Can be figured out automatically via parsing
|
67 |
# gr.inputs.Dropdown(["model type 1", "model type 2", "model type 3"]), # Change model type
|
68 |
+
gr.inputs.CheckboxGroup(summary_options,
|
69 |
+
default=summary_options,
|
70 |
+
label="Summaries to Generate"),
|
71 |
gr.inputs.Slider(minimum=50,
|
72 |
maximum=500,
|
73 |
step=1,
|
|
|
89 |
gr.outputs.Textbox(label="Background Summary"),
|
90 |
gr.outputs.Textbox(label="Claims Summary")
|
91 |
],
|
92 |
+
title="Patent Summarizer π",
|
93 |
description="""
|
94 |
+
v.1.0.0
|
95 |
+
|
96 |
+
Reading through patent documents is oftentimes a long and tedious task. There are cases wherein one has to manually go through several pages in order to determine if the patent is relevant to the prior art search.
|
97 |
+
|
98 |
+
This application is meant to automate the initial phase of going through patents so that the potential inventor or researcher may lessen the time spent trying to filter documents.
|
99 |
+
|
100 |
+
The Patent Summarizer:
|
101 |
+
βοΈ Provides an interface for user input
|
102 |
+
π Retrieves and parses the document based on the given patent information
|
103 |
+
π Returns summaries for the abstract, background, and/or claims.
|
104 |
"""
|
105 |
)
|
106 |
|