Spaces:
Sleeping
Sleeping
added logprobs
Browse files
app.py
CHANGED
@@ -120,6 +120,7 @@ if __name__ == "__main__":
|
|
120 |
|
121 |
avg_logprobs = gr.Textbox(value = torch.mean(transition_proba))
|
122 |
|
|
|
123 |
button.click(get_tokens_and_labels, inputs=prompt, outputs=[highlighted_text, transition_proba])
|
124 |
|
125 |
|
|
|
120 |
|
121 |
avg_logprobs = gr.Textbox(value = torch.mean(transition_proba))
|
122 |
|
123 |
+
highlighted_out, transition_proba = get_tokens_and_labels
|
124 |
button.click(get_tokens_and_labels, inputs=prompt, outputs=[highlighted_text, transition_proba])
|
125 |
|
126 |
|