Spaces:
Runtime error
Runtime error
Commit
•
cdd39e8
1
Parent(s):
addd0d3
Update app.py
Browse files
app.py
CHANGED
@@ -21,10 +21,11 @@ def predict(text):
|
|
21 |
#term_embedding = term_outputs.last_hidden_state.mean(dim=1)
|
22 |
semantic_score = cosine_similarity(title_embedding.flatten(), term_embedding.flatten()) * 100
|
23 |
return str(format(semantic_score,'.2f'))
|
24 |
-
|
|
|
25 |
|
26 |
gradio_app = gr.Interface(
|
27 |
-
|
28 |
inputs='text',
|
29 |
outputs='text',
|
30 |
title="Keyword Score",
|
|
|
21 |
#term_embedding = term_outputs.last_hidden_state.mean(dim=1)
|
22 |
semantic_score = cosine_similarity(title_embedding.flatten(), term_embedding.flatten()) * 100
|
23 |
return str(format(semantic_score,'.2f'))
|
24 |
+
def predict1(text):
|
25 |
+
return(text)
|
26 |
|
27 |
gradio_app = gr.Interface(
|
28 |
+
predict1,
|
29 |
inputs='text',
|
30 |
outputs='text',
|
31 |
title="Keyword Score",
|