EmicoBinsfinder commited on
Commit
04fbf3e
·
1 Parent(s): 4515305

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -23
app.py CHANGED
@@ -78,8 +78,6 @@ def sentence_embedder(sentences, model_path):
78
  sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask']) #outputs a (1, 384) tensor representation of input text
79
  return sentence_embeddings
80
 
81
-
82
-
83
  def add_text(history, text):
84
  history = history + [(text, None)]
85
  return history, ""
@@ -238,8 +236,10 @@ with gr.Blocks(title='Claimed', theme=theme) as demo:
238
 
239
  with gr.Tab("Claim Drafter"):
240
  gr.Markdown("""
241
- Use this tool to expand your idea into the technical language of a patent claim.
242
  """)
 
 
243
  with gr.Row(scale=1, min_width=600):
244
  text1 = gr.Textbox(label="Input",
245
  placeholder='Type in your idea here!')
@@ -247,10 +247,8 @@ with gr.Blocks(title='Claimed', theme=theme) as demo:
247
 
248
  with gr.Tab("Description Generator"):
249
  gr.Markdown("""
250
-
251
  Use this tool to expand your patent claim into a description. You can also use this tool to generate abstracts and give you ideas about the benefit of an invention by changing the settings in the dropdown menu.
252
-
253
- """)
254
  gr.Dropdown(["Generate Description", "Generate Abstract", "Benefits of the invention"], label='Choose Generation Type Here')
255
  with gr.Row(scale=1, min_width=600):
256
 
@@ -258,24 +256,23 @@ with gr.Blocks(title='Claimed', theme=theme) as demo:
258
  placeholder='Type in your idea here!')
259
  text2 = gr.Textbox(label="Output")
260
 
261
- with gr.Tab("Knowledge Graph"):
262
- gr.Markdown("""
263
- Use this tool to generate a knowledge graph of your invention. This will help highlight the links between features.
264
-
265
- """)
266
- with gr.Row(scale=1, min_width=600):
267
- text1 = gr.Textbox(label="Input",
268
- placeholder='Type in your idea here!')
269
- text2 = gr.Textbox(label="Output")
270
 
271
- with gr.Tab("Prosecution Ideator"):
272
- gr.Markdown("""
273
- Use this tool to generate ideas for how to overcome objections to novelty and inventive step. Outputs are in the problem-solution format.
274
- """)
275
- with gr.Row(scale=1, min_width=600):
276
- text1 = gr.Textbox(label="Input",
277
- placeholder='Type in your idea here!')
278
- text2 = gr.Textbox(label="Output")
279
 
280
  # with gr.Tab("Claimed Infill"):
281
  # gr.Markdown("""
 
78
  sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask']) #outputs a (1, 384) tensor representation of input text
79
  return sentence_embeddings
80
 
 
 
81
  def add_text(history, text):
82
  history = history + [(text, None)]
83
  return history, ""
 
236
 
237
  with gr.Tab("Claim Drafter"):
238
  gr.Markdown("""
239
+ 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.
240
  """)
241
+ gr.Dropdown(["Apparatus Claim", "Method of Use Claim", "Method Claim", ], label='Choose Claim Type Here')
242
+
243
  with gr.Row(scale=1, min_width=600):
244
  text1 = gr.Textbox(label="Input",
245
  placeholder='Type in your idea here!')
 
247
 
248
  with gr.Tab("Description Generator"):
249
  gr.Markdown("""
 
250
  Use this tool to expand your patent claim into a description. You can also use this tool to generate abstracts and give you ideas about the benefit of an invention by changing the settings in the dropdown menu.
251
+ """)
 
252
  gr.Dropdown(["Generate Description", "Generate Abstract", "Benefits of the invention"], label='Choose Generation Type Here')
253
  with gr.Row(scale=1, min_width=600):
254
 
 
256
  placeholder='Type in your idea here!')
257
  text2 = gr.Textbox(label="Output")
258
 
259
+ # with gr.Tab("Knowledge Graph"):
260
+ # gr.Markdown("""
261
+ # Use this tool to generate a knowledge graph of your invention. This will help highlight the links between features.
262
+ # """)
263
+ # with gr.Row(scale=1, min_width=600):
264
+ # text1 = gr.Textbox(label="Input",
265
+ # placeholder='Type in your idea here!')
266
+ # text2 = gr.Textbox(label="Output")
 
267
 
268
+ # with gr.Tab("Prosecution Ideator"):
269
+ # gr.Markdown("""
270
+ # Use this tool to generate ideas for how to overcome objections to novelty and inventive step. Outputs are in the problem-solution format.
271
+ # """)
272
+ # with gr.Row(scale=1, min_width=600):
273
+ # text1 = gr.Textbox(label="Input",
274
+ # placeholder='Type in your idea here!')
275
+ # text2 = gr.Textbox(label="Output")
276
 
277
  # with gr.Tab("Claimed Infill"):
278
  # gr.Markdown("""