Commit
·
4402809
1
Parent(s):
c770ec4
default
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ def tokenize_text(method, text, chunk_size, chunk_overlap, num_chunks):
|
|
| 35 |
iface = gr.Interface(
|
| 36 |
fn=tokenize_text,
|
| 37 |
inputs=[
|
| 38 |
-
gr.Dropdown(label="Select Tokenization Method", choices=["RecursiveCharacterTextSplitter"]
|
| 39 |
gr.Textbox(label="Enter Text", lines=10, placeholder="Type or paste text here."),
|
| 40 |
gr.Number(label="Chunk Size", value=DEFAULT_CHUNK_SIZE),
|
| 41 |
gr.Number(label="Chunk Overlap", value=DEFAULT_CHUNK_OVERLAP),
|
|
@@ -49,4 +49,4 @@ iface = gr.Interface(
|
|
| 49 |
width=800 # Adjust this value as needed
|
| 50 |
)
|
| 51 |
|
| 52 |
-
iface.launch(share=True, inbrowser=True)
|
|
|
|
| 35 |
iface = gr.Interface(
|
| 36 |
fn=tokenize_text,
|
| 37 |
inputs=[
|
| 38 |
+
gr.Dropdown(label="Select Tokenization Method", choices=["RecursiveCharacterTextSplitter"]),
|
| 39 |
gr.Textbox(label="Enter Text", lines=10, placeholder="Type or paste text here."),
|
| 40 |
gr.Number(label="Chunk Size", value=DEFAULT_CHUNK_SIZE),
|
| 41 |
gr.Number(label="Chunk Overlap", value=DEFAULT_CHUNK_OVERLAP),
|
|
|
|
| 49 |
width=800 # Adjust this value as needed
|
| 50 |
)
|
| 51 |
|
| 52 |
+
iface.launch(share=True, inbrowser=True)
|