Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,6 +100,8 @@ if __name__ == "__main__":
|
|
| 100 |
"""
|
| 101 |
)
|
| 102 |
|
|
|
|
|
|
|
| 103 |
with gr.Row():
|
| 104 |
with gr.Column():
|
| 105 |
prompt = gr.Textbox(
|
|
@@ -120,8 +122,7 @@ if __name__ == "__main__":
|
|
| 120 |
|
| 121 |
avg_logprobs = gr.Textbox(value = torch.mean(transition_proba))
|
| 122 |
|
| 123 |
-
|
| 124 |
-
button.click(get_tokens_and_labels, inputs=prompt, outputs=[highlighted_text, transition_proba])
|
| 125 |
|
| 126 |
|
| 127 |
if __name__ == "__main__":
|
|
|
|
| 100 |
"""
|
| 101 |
)
|
| 102 |
|
| 103 |
+
highlighted_out, transition_proba = get_tokens_and_labels
|
| 104 |
+
|
| 105 |
with gr.Row():
|
| 106 |
with gr.Column():
|
| 107 |
prompt = gr.Textbox(
|
|
|
|
| 122 |
|
| 123 |
avg_logprobs = gr.Textbox(value = torch.mean(transition_proba))
|
| 124 |
|
| 125 |
+
button.click(inputs=prompt, outputs=[highlighted_text, transition_proba])
|
|
|
|
| 126 |
|
| 127 |
|
| 128 |
if __name__ == "__main__":
|