Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,13 +90,13 @@ def launch(text_input):
|
|
| 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 |
-
|
| 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="ISCO: <result>\nProbability: <result>
|
| 100 |
)
|
| 101 |
|
| 102 |
iface.launch()
|
|
|
|
| 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 [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="ISCO: <result>\nProbability: <result>)
|
| 100 |
)
|
| 101 |
|
| 102 |
iface.launch()
|