Update app.py
Browse files
app.py
CHANGED
@@ -317,7 +317,7 @@ def display_python_parts():
|
|
317 |
|
318 |
sHOW ALL ORIGIN OF TERMS IN INDIAN LANGUAGES AND WHAT THEY MEAN NEAR MINOQUA WISCONSIN
|
319 |
|
320 |
-
" + part
|
321 |
example_placeholders[part] = example
|
322 |
response = chat_with_model('Create detailed python script code example scripts with input data as python data structures and real URLs like wikipedia without functions for:' + example_placeholders[part], part)
|
323 |
st.code(response, language="python")
|
@@ -565,9 +565,6 @@ def divide_prompt(prompt, max_length):
|
|
565 |
return chunks
|
566 |
|
567 |
def create_zip_of_files(files):
|
568 |
-
"""
|
569 |
-
Create a zip file from a list of files.
|
570 |
-
"""
|
571 |
zip_name = "all_files.zip"
|
572 |
with zipfile.ZipFile(zip_name, 'w') as zipf:
|
573 |
for file in files:
|
@@ -576,9 +573,6 @@ def create_zip_of_files(files):
|
|
576 |
|
577 |
|
578 |
def get_zip_download_link(zip_file):
|
579 |
-
"""
|
580 |
-
Generate a link to download the zip file.
|
581 |
-
"""
|
582 |
with open(zip_file, 'rb') as f:
|
583 |
data = f.read()
|
584 |
b64 = base64.b64encode(data).decode()
|
|
|
317 |
|
318 |
sHOW ALL ORIGIN OF TERMS IN INDIAN LANGUAGES AND WHAT THEY MEAN NEAR MINOQUA WISCONSIN
|
319 |
|
320 |
+
""" + part
|
321 |
example_placeholders[part] = example
|
322 |
response = chat_with_model('Create detailed python script code example scripts with input data as python data structures and real URLs like wikipedia without functions for:' + example_placeholders[part], part)
|
323 |
st.code(response, language="python")
|
|
|
565 |
return chunks
|
566 |
|
567 |
def create_zip_of_files(files):
|
|
|
|
|
|
|
568 |
zip_name = "all_files.zip"
|
569 |
with zipfile.ZipFile(zip_name, 'w') as zipf:
|
570 |
for file in files:
|
|
|
573 |
|
574 |
|
575 |
def get_zip_download_link(zip_file):
|
|
|
|
|
|
|
576 |
with open(zip_file, 'rb') as f:
|
577 |
data = f.read()
|
578 |
b64 = base64.b64encode(data).decode()
|