PierreHanna commited on
Commit
b1637b3
Β·
1 Parent(s): 94d85f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -34,11 +34,8 @@ def process(prompt, lang):
34
  print('*************')
35
  print()
36
 
37
- # Embed text
38
  embed_query = get_predict(encoder_text, prompt, preprocess_model, model)
39
-
40
  do_normalize(embed_query)
41
- print(" text embed computed.")
42
  D, I = get_distance(index, embed_query, TOP)
43
  #print(I)
44
  #print(D)
@@ -56,7 +53,7 @@ def process(prompt, lang):
56
  inputs = [gr.Textbox(label="Input", value="type your description", max_lines=2),
57
  gr.Radio(label="Language", choices=["en"], value="en")]
58
 
59
- poc_examples = [#[["I love learning machine learning"],["autre"]]
60
  ["Mysterious filmscore with Arabic influenced instruments","en"],
61
  ["Let's go on a magical adventure with wizzards, dragons and castles","en"],
62
  ["Creepy piano opening evolves and speeds up into a cinematic orchestral piece","en"],
 
34
  print('*************')
35
  print()
36
 
 
37
  embed_query = get_predict(encoder_text, prompt, preprocess_model, model)
 
38
  do_normalize(embed_query)
 
39
  D, I = get_distance(index, embed_query, TOP)
40
  #print(I)
41
  #print(D)
 
53
  inputs = [gr.Textbox(label="Input", value="type your description", max_lines=2),
54
  gr.Radio(label="Language", choices=["en"], value="en")]
55
 
56
+ poc_examples = [
57
  ["Mysterious filmscore with Arabic influenced instruments","en"],
58
  ["Let's go on a magical adventure with wizzards, dragons and castles","en"],
59
  ["Creepy piano opening evolves and speeds up into a cinematic orchestral piece","en"],