ullasmrnva commited on
Commit
d68d90d
·
1 Parent(s): bdb164a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -65,8 +65,8 @@ def make_prediction(contract):
65
  33: 'Warranty Duration',
66
  }
67
  final_df = contract_sentences_df[y_pred != 17][['sentences']]
68
- final_df['clause'] = np.vectorize(clause_map.get)(y_pred[y_pred
69
- != 17])
70
  output_sentences = []
71
  for i in [
72
  'License Grant',
@@ -144,4 +144,4 @@ gr.Interface(fn=make_prediction,
144
  gr.Textbox(label='Liquidated Damages'),
145
  gr.Textbox(label='Third Party Beneficiary'),
146
  gr.Textbox(label='Source Code Escrow'),
147
- ]).launch(share=True, debug = True)
 
65
  33: 'Warranty Duration',
66
  }
67
  final_df = contract_sentences_df[y_pred != 17][['sentences']]
68
+ final_df['clause'] = np.array([clause_map[x] for x in y_pred[y_pred
69
+ != 17]])
70
  output_sentences = []
71
  for i in [
72
  'License Grant',
 
144
  gr.Textbox(label='Liquidated Damages'),
145
  gr.Textbox(label='Third Party Beneficiary'),
146
  gr.Textbox(label='Source Code Escrow'),
147
+ ]).launch(share=True)