Spaces:
Runtime error
Runtime error
Commit
·
9a92101
1
Parent(s):
4e42957
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def bot(history):
|
|
36 |
class_embeddings = pd.read_csv('Embeddings/MainClassEmbeddings.csv')
|
37 |
|
38 |
|
39 |
-
def classifier(userin,
|
40 |
clean_in = classification.clean_data(userin, type='String')
|
41 |
in_emb = classification.sentence_embedder(clean_in, 'Model_bert')
|
42 |
|
@@ -46,7 +46,7 @@ def classifier(userin, searchlink):
|
|
46 |
return broad_scope_predictions[1], searchlink
|
47 |
|
48 |
|
49 |
-
# def generateresponse(history):
|
50 |
# """
|
51 |
# Model definition here:
|
52 |
# """
|
@@ -131,7 +131,7 @@ with gr.Blocks(title='Claimed', theme=theme) as demo:
|
|
131 |
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.
|
132 |
|
133 |
""")
|
134 |
-
gr.Dropdown(["Generate Description", "Generate Abstract", "Benefits of the invention"], label='Choose Generation Type Here', value='Generate Description')
|
135 |
with gr.Row(scale=1, min_width=600):
|
136 |
|
137 |
text1 = gr.Textbox(label="Input",
|
|
|
36 |
class_embeddings = pd.read_csv('Embeddings/MainClassEmbeddings.csv')
|
37 |
|
38 |
|
39 |
+
def classifier(userin, SearchType):
|
40 |
clean_in = classification.clean_data(userin, type='String')
|
41 |
in_emb = classification.sentence_embedder(clean_in, 'Model_bert')
|
42 |
|
|
|
46 |
return broad_scope_predictions[1], searchlink
|
47 |
|
48 |
|
49 |
+
# def generateresponse(history, task):
|
50 |
# """
|
51 |
# Model definition here:
|
52 |
# """
|
|
|
131 |
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.
|
132 |
|
133 |
""")
|
134 |
+
Task = gr.Dropdown(["Generate Description", "Generate Abstract", "Benefits of the invention"], label='Choose Generation Type Here', value='Generate Description')
|
135 |
with gr.Row(scale=1, min_width=600):
|
136 |
|
137 |
text1 = gr.Textbox(label="Input",
|