aksj commited on
Commit
c8d110e
·
1 Parent(s): eb2c45c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,13 +20,13 @@ def compute_cosine_similarity(text1, text2):
20
 
21
  def text_similarity(text):
22
  score= compute_cosine_similarity(shanty,text)
23
- return score
24
 
25
  with gr.Blocks() as demo:
26
  gr.Markdown("# Guess the lyrics of the sea shanty! \n ## Each two seconds of video represents a line")
27
  video=gr.PlayableVideo("final_video.mp4")
28
  inp=gr.Textbox(placeholder="Enter lyrics of sea shanty!")
29
 
30
- out=gr.Textbox()
31
  inp.change(text_similarity,inp,out)
32
  demo.launch(show_api=False)
 
20
 
21
  def text_similarity(text):
22
  score= compute_cosine_similarity(shanty,text)
23
+ return score*100
24
 
25
  with gr.Blocks() as demo:
26
  gr.Markdown("# Guess the lyrics of the sea shanty! \n ## Each two seconds of video represents a line")
27
  video=gr.PlayableVideo("final_video.mp4")
28
  inp=gr.Textbox(placeholder="Enter lyrics of sea shanty!")
29
 
30
+ out=gr.Textbox(label="Your points")
31
  inp.change(text_similarity,inp,out)
32
  demo.launch(show_api=False)