CAGmllab commited on
Commit
d4456cd
1 Parent(s): c44f84f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -41,12 +41,6 @@ class Demo:
41
  max_value=0.99,
42
  value=0.95
43
  )
44
- max_candidates = exp.number_input(
45
- label='Max candidates',
46
- min_value=1,
47
- max_value=20,
48
- value=5
49
- )
50
  with st.spinner('Loading model..'):
51
  sf = self.load_sf(self.style_map[style_key][1])
52
  input_text = st.selectbox(
@@ -59,7 +53,7 @@ class Demo:
59
  )
60
 
61
  if input_text.strip():
62
- result = sf.transfer(input_text, quality_filter=quality_filter, max_candidates=max_candidates)
63
  st.markdown(f'#### Output:')
64
  st.write('')
65
  if result:
 
41
  max_value=0.99,
42
  value=0.95
43
  )
 
 
 
 
 
 
44
  with st.spinner('Loading model..'):
45
  sf = self.load_sf(self.style_map[style_key][1])
46
  input_text = st.selectbox(
 
53
  )
54
 
55
  if input_text.strip():
56
+ result = sf.transfer(input_text, quality_filter=quality_filter, max_candidates=1)
57
  st.markdown(f'#### Output:')
58
  st.write('')
59
  if result: