Spaces:
Runtime error
Runtime error
Commit
·
c10348d
1
Parent(s):
3245b7e
feat: semantic similarity app
Browse files
app.py
CHANGED
|
@@ -2,6 +2,8 @@ import gradio as gr
|
|
| 2 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 3 |
import torch
|
| 4 |
|
|
|
|
|
|
|
| 5 |
app_title = "Semantic Similarity (Similaridade Semântica)"
|
| 6 |
|
| 7 |
app_description = """
|
|
@@ -112,4 +114,5 @@ outputs = [
|
|
| 112 |
|
| 113 |
gr.Interface(fn=similarity, inputs=inputs, outputs=outputs, title=app_title,
|
| 114 |
description=app_description,
|
| 115 |
-
examples=app_examples
|
|
|
|
|
|
| 2 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 3 |
import torch
|
| 4 |
|
| 5 |
+
article_string = "Author: <a href=\"https://huggingface.co/ruanchaves\">Ruan Chaves Rodrigues</a>. Read more about our <a href=\"https://github.com/ruanchaves/evaluation-portuguese-language-models\">research on the evaluation of Portuguese language models</a>."
|
| 6 |
+
|
| 7 |
app_title = "Semantic Similarity (Similaridade Semântica)"
|
| 8 |
|
| 9 |
app_description = """
|
|
|
|
| 114 |
|
| 115 |
gr.Interface(fn=similarity, inputs=inputs, outputs=outputs, title=app_title,
|
| 116 |
description=app_description,
|
| 117 |
+
examples=app_examples,
|
| 118 |
+
article = article_string).launch()
|