Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ with open("info.md", "r") as file:
|
|
15 |
info_md_content = file.read()
|
16 |
|
17 |
# Chunk the info.md content into smaller sections
|
18 |
-
chunk_size =
|
19 |
info_md_chunks = textwrap.wrap(info_md_content, chunk_size)
|
20 |
|
21 |
def get_relevant_chunk(prompt, chunks):
|
@@ -96,4 +96,4 @@ with gr.Blocks() as app: # Add auth here
|
|
96 |
stop_btn.click(None, None, None, cancels=[go])
|
97 |
clear_btn.click(clear_fn, None, [inp, chat])
|
98 |
|
99 |
-
app.queue(default_concurrency_limit=10).launch()
|
|
|
15 |
info_md_content = file.read()
|
16 |
|
17 |
# Chunk the info.md content into smaller sections
|
18 |
+
chunk_size = 2000 # Adjust this size as needed
|
19 |
info_md_chunks = textwrap.wrap(info_md_content, chunk_size)
|
20 |
|
21 |
def get_relevant_chunk(prompt, chunks):
|
|
|
96 |
stop_btn.click(None, None, None, cancels=[go])
|
97 |
clear_btn.click(clear_fn, None, [inp, chat])
|
98 |
|
99 |
+
app.queue(default_concurrency_limit=10).launch(auth=("admin", "0112358"))
|