nitinbhayana commited on
Commit
cdd39e8
1 Parent(s): addd0d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- predict,
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",