manandey commited on
Commit
932c825
·
1 Parent(s): 0d51b77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -56,18 +56,20 @@ For more cool information on sentence embeddings, see the [sBert project](https:
56
  select_models = st.multiselect("Choose models", options=list(MODELS_ID), default=list(MODELS_ID)[0])
57
 
58
  anchor = st.text_input(
59
- 'Please enter here the main text you want to compare:'
 
60
  )
61
 
62
  n_texts = st.number_input(
63
  f'''How many texts you want to compare with: '{anchor}'?''',
64
- value=2,
65
  min_value=2)
66
 
67
  inputs = []
68
-
 
69
  for i in range(int(n_texts)):
70
- input = st.text_input(f'Text {i + 1}:')
71
 
72
  inputs.append(input)
73
 
 
56
  select_models = st.multiselect("Choose models", options=list(MODELS_ID), default=list(MODELS_ID)[0])
57
 
58
  anchor = st.text_input(
59
+ 'Please enter here the main text you want to compare:',
60
+ value="That is a happy person"
61
  )
62
 
63
  n_texts = st.number_input(
64
  f'''How many texts you want to compare with: '{anchor}'?''',
65
+ value=3,
66
  min_value=2)
67
 
68
  inputs = []
69
+
70
+ defaults = ["That is a happy dog", "That is a very happy person", "Today is a sunny day"]
71
  for i in range(int(n_texts)):
72
+ input = st.text_input(f'Text {i + 1}:', value=defaults[i] if i < len(defaults) else "")
73
 
74
  inputs.append(input)
75