NLPV commited on
Commit
108650c
·
verified ·
1 Parent(s): 87cd26d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,13 +89,13 @@ def launch(text_input):
89
 
90
  # Create descriptive text for the output
91
  #result_text = "Most likely ISCO code is {} and probability is {:.2f}".format(decoded_labels[0], highest_probabilities[0])
92
- result_text = f"ISCO: {decoded_labels[0]}\nProbability: {highest_probabilities[0]:.2f}"
93
  return result_text #[decoded_labels[0], highest_probabilities[0]]
94
 
95
 
96
  iface = gr.Interface(
97
  fn=launch,
98
- inputs=gr.Textbox(lines=2, placeholder="Enter job title and description here..."),
99
  outputs=gr.Textbox(lines=2, placeholder="Predicted ISCO Code: <result> Probability: <result>")
100
  )
101
 
 
89
 
90
  # Create descriptive text for the output
91
  #result_text = "Most likely ISCO code is {} and probability is {:.2f}".format(decoded_labels[0], highest_probabilities[0])
92
+ result_text = f"Predicted ISCO Code: {decoded_labels[0]}\nProbability: {highest_probabilities[0]:.2f}"
93
  return result_text #[decoded_labels[0], highest_probabilities[0]]
94
 
95
 
96
  iface = gr.Interface(
97
  fn=launch,
98
+ inputs=gr.Textbox(lines=2, placeholder="Enter job title in any language (e.g., Software Engineer) and description here (e.g., Develops and maintains software applications)..."),
99
  outputs=gr.Textbox(lines=2, placeholder="Predicted ISCO Code: <result> Probability: <result>")
100
  )
101