thepolymerguy commited on
Commit
8cacfad
1 Parent(s): 5e8714a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -58,7 +58,7 @@ def classifier(userin):
58
  Number = 10
59
  broad_scope_predictions = classification.broad_scope_class_predictor(class_embeddings, in_emb, Number, Sensitivity='High')
60
 
61
- return broad_scope_predictions
62
 
63
 
64
  def generateresponse(history):
@@ -195,13 +195,12 @@ with gr.Blocks(title='Claimed', theme=theme) as demo:
195
 
196
  """)
197
  with gr.Row(scale=1, min_width=600):
198
- with gr.Row():
199
- userin = gr.Textbox(label="Input",
200
- placeholder='Type in your Claim/Description/Abstract Here')
201
- output = gr.Textbox(label="Output")
202
- with gr.Row():
203
- classify_btn = gr.Button("Classify")
204
- classify_btn.click(fn=classifier, inputs=userin, outputs=output)
205
 
206
 
207
  gr.Markdown("""
 
58
  Number = 10
59
  broad_scope_predictions = classification.broad_scope_class_predictor(class_embeddings, in_emb, Number, Sensitivity='High')
60
 
61
+ return broad_scope_predictions[2]
62
 
63
 
64
  def generateresponse(history):
 
195
 
196
  """)
197
  with gr.Row(scale=1, min_width=600):
198
+ userin = gr.Textbox(label="Input",
199
+ placeholder='Type in your Claim/Description/Abstract Here')
200
+ output = gr.Textbox(label="Output")
201
+ with gr.Row():
202
+ classify_btn = gr.Button("Classify")
203
+ classify_btn.click(fn=classifier, inputs=userin, outputs=output)
 
204
 
205
 
206
  gr.Markdown("""