kevinlu1248 commited on
Commit
c07d625
·
1 Parent(s): 5bcf07b

minor improvements

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -139,8 +139,8 @@ with gr.Blocks(css=css) as demo:
139
 
140
  with gr.Row():
141
  language = gr.Dropdown(["python", "javascript", "go", "ruby", "java", "php", "c", "cpp", "rust", "haskell"], label="Language", value="python")
142
- max_chars = gr.Slider(1, 3000, 1500, label="Max Characters")
143
- coalesce = gr.Slider(0, 300, 100, label="Coalesce")
144
  with gr.Row():
145
  inp = gr.Code(placeholder="Enter the code here", label="Code to Chunk", language=language.value, lines=60, elem_classes="code_container", value=default_code)
146
  out = gr.Code(label="Chunked Code", language=language.value, lines=60, value=chunk_code(default_code, language.value, max_chars.value, coalesce.value))
 
139
 
140
  with gr.Row():
141
  language = gr.Dropdown(["python", "javascript", "go", "ruby", "java", "php", "c", "cpp", "rust", "haskell"], label="Language", value="python")
142
+ max_chars = gr.Slider(1, 3000, 1500, label="Max Characters", step=10)
143
+ coalesce = gr.Slider(0, 300, 100, label="Coalesce", step=10)
144
  with gr.Row():
145
  inp = gr.Code(placeholder="Enter the code here", label="Code to Chunk", language=language.value, lines=60, elem_classes="code_container", value=default_code)
146
  out = gr.Code(label="Chunked Code", language=language.value, lines=60, value=chunk_code(default_code, language.value, max_chars.value, coalesce.value))