NCTCMumbai commited on
Commit
d8607e5
·
verified ·
1 Parent(s): 3941464

Update fun_advaitbert.py

Browse files
Files changed (1) hide show
  1. fun_advaitbert.py +3 -1
fun_advaitbert.py CHANGED
@@ -143,7 +143,7 @@ additional_inputs=[
143
  ),
144
  gr.Slider(
145
  label="Top-p (nucleus sampling)",
146
- value=0.90,
147
  minimum=0.0,
148
  maximum=1,
149
  step=0.05,
@@ -268,6 +268,8 @@ def llm_model_function(txt,history,chatbot=[], temperature=0.9, max_new_tokens=1
268
  pred_duty=df_report_DUTY[df_report_DUTY['CTH']==str(pred_CTH)]['DUTY_RATE'].iloc[0]
269
  pred_desc=df_report[df_report['CTH Code']==str(pred_CTH)]['Concat Description'].iloc[0]
270
  except:
 
 
271
  pass
272
 
273
  Var_CTH.append(pred_CTH)
 
143
  ),
144
  gr.Slider(
145
  label="Top-p (nucleus sampling)",
146
+ value=0.50,
147
  minimum=0.0,
148
  maximum=1,
149
  step=0.05,
 
268
  pred_duty=df_report_DUTY[df_report_DUTY['CTH']==str(pred_CTH)]['DUTY_RATE'].iloc[0]
269
  pred_desc=df_report[df_report['CTH Code']==str(pred_CTH)]['Concat Description'].iloc[0]
270
  except:
271
+ pred_duty=''
272
+ pred_desc=''
273
  pass
274
 
275
  Var_CTH.append(pred_CTH)