Danil commited on
Commit
dc685c3
Β·
1 Parent(s): 2c3abf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -13,23 +13,25 @@ def load_model():
13
  return [model, tokenizer]
14
 
15
  st.set_page_config(
16
- page_title="BulgakovLM Example",
17
  page_icon="πŸ‘¨β€πŸ’»",
18
  )
19
 
20
- st.markdown("# πŸ‘¨β€πŸ’» BulgakovLM Example")
21
 
22
- txt = st.text_area('Write code here', '''ΠžΠ΄Π½Π°ΠΆΠ΄Ρ‹ ΡƒΡ‚Ρ€ΠΎΠΌ''', height=400)
 
 
23
 
24
  gen = st.button('Generate')
25
 
26
  c = st.code('')
27
 
28
- max_length = st.slider('max_length', 1, 1024, 128)
29
  top_k = st.slider('top_k', 0, 100, 50)
30
  top_p = st.slider('top_p', 0.0, 1.0, 0.9)
31
- temperature = st.slider('temperature', 0.0, 1.0, 1.0)
32
- num_beams = st.slider('num_beams', 1, 100, 5)
33
  repetition_penalty = st.slider('repetition_penalty', 1.0, 10.0, 1.0)
34
 
35
 
 
13
  return [model, tokenizer]
14
 
15
  st.set_page_config(
16
+ page_title="Incoder Example",
17
  page_icon="πŸ‘¨β€πŸ’»",
18
  )
19
 
20
+ st.markdown("# πŸ‘¨β€πŸ’» Incoder Example")
21
 
22
+ txt = st.text_area('Write code here', '''import os
23
+
24
+ def remove_file(file):''', height=400)
25
 
26
  gen = st.button('Generate')
27
 
28
  c = st.code('')
29
 
30
+ max_length = st.slider('max_length', 1, 2048, 128)
31
  top_k = st.slider('top_k', 0, 100, 50)
32
  top_p = st.slider('top_p', 0.0, 1.0, 0.9)
33
+ temperature = st.slider('temperature', 0.0, 1.0, 0.6)
34
+ num_beams = st.slider('num_beams', 1, 100, 0)
35
  repetition_penalty = st.slider('repetition_penalty', 1.0, 10.0, 1.0)
36
 
37