Spaces:
Runtime error
Runtime error
Danil
commited on
Commit
Β·
dc685c3
1
Parent(s):
2c3abf7
Update app.py
Browse files
app.py
CHANGED
@@ -13,23 +13,25 @@ def load_model():
|
|
13 |
return [model, tokenizer]
|
14 |
|
15 |
st.set_page_config(
|
16 |
-
page_title="
|
17 |
page_icon="π¨βπ»",
|
18 |
)
|
19 |
|
20 |
-
st.markdown("# π¨βπ»
|
21 |
|
22 |
-
txt = st.text_area('Write code here', '''
|
|
|
|
|
23 |
|
24 |
gen = st.button('Generate')
|
25 |
|
26 |
c = st.code('')
|
27 |
|
28 |
-
max_length = st.slider('max_length', 1,
|
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,
|
32 |
-
num_beams = st.slider('num_beams', 1, 100,
|
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 |
|