EmicoBinsfinder commited on
Commit
7ebf80b
1 Parent(s): db8120f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -39
app.py CHANGED
@@ -405,15 +405,15 @@ theme = gr.themes.Base(
405
  prose_text_size='*text_sm'
406
  )
407
 
408
- with gr.Blocks(title='Claimed', theme=theme) as demo:
409
 
410
  gr.Markdown("""
411
- # CLAIMED - A GENERATIVE TOOLKIT FOR PATENT ATTORNEYS AND INVENTORS
412
  The patenting process can be complex, time-consuming and expensive. We believe that AI will one day alleviate these problems.
413
 
414
  As a proof of concept, we've trained Meta's Llama on over 200k entries, with a focus on tasks related to the intellectual property domain.
415
 
416
- We are currently running this demo on a less powerful version of our model due to computational limitations. If you would like to see our most powerful model in action, please contact us at this email: claimedip@gmail.com
417
 
418
  We know that confidentiality is probably the number one concern for attorneys when considering using such tools. We don't store any of your inputs to use for further training and we don't use the OpenAI API (ChatGPT) as our backend, meaning that confidentiality is not comprimised!
419
 
@@ -422,24 +422,24 @@ with gr.Blocks(title='Claimed', theme=theme) as demo:
422
  None of the outputs of this model, taken in part or in its entirety, constitutes legal advice. If you are seeking protection for you intellectual property, consult a registered patent/trademark attorney.
423
  """)
424
 
425
- with gr.Tab("Ideator"):
426
- gr.Markdown("""
427
- Use this tool to generate ideas for how to implement an invention/creation.
428
- """)
429
- with gr.Row(scale=1, min_width=600):
430
- with gr.Column():
431
- userin = gr.Text(label="Input", lines=5)
432
- with gr.Column():
433
- text2 = gr.Textbox(label="Output", lines=5)
434
- with gr.Row():
435
- btn = gr.Button("Submit")
436
- with gr.Row():
437
- with gr.Accordion("Parameters"):
438
- temp = gr.Slider(minimum=0, maximum=1, value=0.6, label="Temperature", step=0.1)
439
- top_p = gr.Slider(minimum=0.5, maximum=1, value=0.95, label="Top P", step=0.1)
440
- tokens = gr.Slider(minimum=5, maximum=2058, value=512, label="Max Tokens", step=1)
441
-
442
- btn.click(fn=ideator, inputs=[userin, temp, top_p, tokens], outputs=text2)
443
 
444
  with gr.Tab("Claim Drafter"):
445
  gr.Markdown("""
@@ -481,26 +481,26 @@ with gr.Blocks(title='Claimed', theme=theme) as demo:
481
 
482
  btn.click(fn=desc_selector, inputs=[text1, Descriptionchoices]).then(run_model, inputs=[text1, Descriptionchoices, temp, top_p, tokens], outputs=text2)
483
 
484
- with gr.Tab("Prosecution Beta"):
485
- gr.Markdown("""
486
- Use this tool to generate ideas for how to overcome objections to novelty and inventive step. For now, this tool only works on relatively short inputs, so maybe try very simple inventions or short paragraphs.
487
- """)
488
- with gr.Row(scale=1, min_width=600):
489
- with gr.Column():
490
- application = gr.Text(label="Present Invention", lines=5)
491
- priorart = gr.Text(label="Prior Art Document", lines=5)
492
- with gr.Column():
493
- text2 = gr.Textbox(label="Output", lines=5)
494
- with gr.Row():
495
- btn = gr.Button("Submit")
496
 
497
- with gr.Row():
498
- with gr.Accordion("Parameters"):
499
- temp = gr.Slider(minimum=0, maximum=1, value=0.6, label="Temperature", step=0.1)
500
- top_p = gr.Slider(minimum=0.5, maximum=1, value=0.95, label="Top P", step=0.1)
501
- tokens = gr.Slider(minimum=5, maximum=2058, value=512, label="Max Tokens", step=1)
502
 
503
- btn.click(fn=prosecute, inputs=[application, priorart, temp, top_p, tokens], outputs=text2)
504
 
505
  with gr.Tab("CPC Search Tool"):
506
  gr.Markdown("""
 
405
  prose_text_size='*text_sm'
406
  )
407
 
408
+ with gr.Blocks(title='Patent Toolkit', theme=theme) as demo:
409
 
410
  gr.Markdown("""
411
+ # GENERATIVE TOOLKIT FOR PATENT ATTORNEYS AND INVENTORS
412
  The patenting process can be complex, time-consuming and expensive. We believe that AI will one day alleviate these problems.
413
 
414
  As a proof of concept, we've trained Meta's Llama on over 200k entries, with a focus on tasks related to the intellectual property domain.
415
 
416
+ We are currently running this demo on a less powerful version of our model due to computational limitations. If you would like to see our most powerful model in action, please contact us at this email: eogbomo21@imperial.ac.ic.uk
417
 
418
  We know that confidentiality is probably the number one concern for attorneys when considering using such tools. We don't store any of your inputs to use for further training and we don't use the OpenAI API (ChatGPT) as our backend, meaning that confidentiality is not comprimised!
419
 
 
422
  None of the outputs of this model, taken in part or in its entirety, constitutes legal advice. If you are seeking protection for you intellectual property, consult a registered patent/trademark attorney.
423
  """)
424
 
425
+ # with gr.Tab("Ideator"):
426
+ # gr.Markdown("""
427
+ # Use this tool to generate ideas for how to implement an invention/creation.
428
+ # """)
429
+ # with gr.Row(scale=1, min_width=600):
430
+ # with gr.Column():
431
+ # userin = gr.Text(label="Input", lines=5)
432
+ # with gr.Column():
433
+ # text2 = gr.Textbox(label="Output", lines=5)
434
+ # with gr.Row():
435
+ # btn = gr.Button("Submit")
436
+ # with gr.Row():
437
+ # with gr.Accordion("Parameters"):
438
+ # temp = gr.Slider(minimum=0, maximum=1, value=0.6, label="Temperature", step=0.1)
439
+ # top_p = gr.Slider(minimum=0.5, maximum=1, value=0.95, label="Top P", step=0.1)
440
+ # tokens = gr.Slider(minimum=5, maximum=2058, value=512, label="Max Tokens", step=1)
441
+
442
+ # btn.click(fn=ideator, inputs=[userin, temp, top_p, tokens], outputs=text2)
443
 
444
  with gr.Tab("Claim Drafter"):
445
  gr.Markdown("""
 
481
 
482
  btn.click(fn=desc_selector, inputs=[text1, Descriptionchoices]).then(run_model, inputs=[text1, Descriptionchoices, temp, top_p, tokens], outputs=text2)
483
 
484
+ # with gr.Tab("Prosecution Beta"):
485
+ # gr.Markdown("""
486
+ # Use this tool to generate ideas for how to overcome objections to novelty and inventive step. For now, this tool only works on relatively short inputs, so maybe try very simple inventions or short paragraphs.
487
+ # """)
488
+ # with gr.Row(scale=1, min_width=600):
489
+ # with gr.Column():
490
+ # application = gr.Text(label="Present Invention", lines=5)
491
+ # priorart = gr.Text(label="Prior Art Document", lines=5)
492
+ # with gr.Column():
493
+ # text2 = gr.Textbox(label="Output", lines=5)
494
+ # with gr.Row():
495
+ # btn = gr.Button("Submit")
496
 
497
+ # with gr.Row():
498
+ # with gr.Accordion("Parameters"):
499
+ # temp = gr.Slider(minimum=0, maximum=1, value=0.6, label="Temperature", step=0.1)
500
+ # top_p = gr.Slider(minimum=0.5, maximum=1, value=0.95, label="Top P", step=0.1)
501
+ # tokens = gr.Slider(minimum=5, maximum=2058, value=512, label="Max Tokens", step=1)
502
 
503
+ # btn.click(fn=prosecute, inputs=[application, priorart, temp, top_p, tokens], outputs=text2)
504
 
505
  with gr.Tab("CPC Search Tool"):
506
  gr.Markdown("""