Spaces:
Runtime error
Runtime error
EmicoBinsfinder
commited on
Commit
•
db8120f
1
Parent(s):
e84e511
Update app.py
Browse files
app.py
CHANGED
@@ -253,7 +253,7 @@ def run_model(userin, dropd, temp, top_p, tokens):
|
|
253 |
global model
|
254 |
global tokenizer
|
255 |
|
256 |
-
if dropd in ["An apparatus", "A method of use", "A method", "A method of
|
257 |
PROMPT = claim_selector(userin, dropd)
|
258 |
elif dropd in ["Generate a Detailed Description Paragraph", "Generate a Abstract", "What are the Benefits/Technical Effects"]:
|
259 |
PROMPT = desc_selector(userin, dropd)
|
@@ -296,7 +296,7 @@ def prosecute(application, priorart, temp, top_p, tokens):
|
|
296 |
)
|
297 |
|
298 |
PROMPT = f"""
|
299 |
-
Draft an argument for the patentability in favour of the application using the European Patent Office Problem Solution
|
300 |
|
301 |
Application: {application}
|
302 |
|
@@ -445,7 +445,7 @@ with gr.Blocks(title='Claimed', theme=theme) as demo:
|
|
445 |
gr.Markdown("""
|
446 |
Use this tool to expand your idea into the technical language of a patent claim. You can specify the type of claim you want using the dropdown menu.
|
447 |
""")
|
448 |
-
Claimchoices = gr.Dropdown(["An apparatus", "A method of use", "A method", "A method of
|
449 |
|
450 |
with gr.Row(scale=1, min_width=600):
|
451 |
text1 = gr.Textbox(label="Input",
|
|
|
253 |
global model
|
254 |
global tokenizer
|
255 |
|
256 |
+
if dropd in ["An apparatus", "A method of use", "A method", "A method of manufacturing", "A system"]:
|
257 |
PROMPT = claim_selector(userin, dropd)
|
258 |
elif dropd in ["Generate a Detailed Description Paragraph", "Generate a Abstract", "What are the Benefits/Technical Effects"]:
|
259 |
PROMPT = desc_selector(userin, dropd)
|
|
|
296 |
)
|
297 |
|
298 |
PROMPT = f"""
|
299 |
+
Draft an argument for the patentability in favour of the application using the European Patent Office Problem Solution appraoch by summarising the difference between the Application and the prior art. If there is no differnce, say that the present invention is not novel/inventive.
|
300 |
|
301 |
Application: {application}
|
302 |
|
|
|
445 |
gr.Markdown("""
|
446 |
Use this tool to expand your idea into the technical language of a patent claim. You can specify the type of claim you want using the dropdown menu.
|
447 |
""")
|
448 |
+
Claimchoices = gr.Dropdown(["An apparatus", "A method of use", "A method", "A method of manufacturing", "A system"], label='Choose Claim Type Here')
|
449 |
|
450 |
with gr.Row(scale=1, min_width=600):
|
451 |
text1 = gr.Textbox(label="Input",
|