Spaces:
Running
Running
adibak
commited on
Commit
·
acafc9b
1
Parent(s):
90c3309
modify chat placeholder
Browse files- helpers/file_manager.py +1 -1
- strings.json +1 -1
helpers/file_manager.py
CHANGED
@@ -62,7 +62,7 @@ def validate_page_range(pdf_file: st.runtime.uploaded_file_manager.UploadedFile,
|
|
62 |
# set end to min of pdf length or specified end (whichever's lower)
|
63 |
end = min(n_pages, end)
|
64 |
|
65 |
-
if start
|
66 |
start = 1
|
67 |
|
68 |
return (start, end)
|
|
|
62 |
# set end to min of pdf length or specified end (whichever's lower)
|
63 |
end = min(n_pages, end)
|
64 |
|
65 |
+
if start > end: # if the start is higher than the end, make it 1
|
66 |
start = 1
|
67 |
|
68 |
return (start, end)
|
strings.json
CHANGED
@@ -35,6 +35,6 @@
|
|
35 |
"Did you know that SlideDeck AI supports eight LLMs that generate contents in different styles?",
|
36 |
"Did you know that SlideDeck AI can create a presentation based on any uploaded PDF file?"
|
37 |
],
|
38 |
-
"chat_placeholder": "
|
39 |
"like_feedback": "If you like SlideDeck AI, please consider leaving a heart ❤\uFE0F on the [Hugging Face Space](https://huggingface.co/spaces/barunsaha/slide-deck-ai/) or a star ⭐ on [GitHub](https://github.com/barun-saha/slide-deck-ai). Your [feedback](https://forms.gle/JECFBGhjvSj7moBx9) is appreciated."
|
40 |
}
|
|
|
35 |
"Did you know that SlideDeck AI supports eight LLMs that generate contents in different styles?",
|
36 |
"Did you know that SlideDeck AI can create a presentation based on any uploaded PDF file?"
|
37 |
],
|
38 |
+
"chat_placeholder": "Click or drop to upload a PDF and write the topic or instructions here.",
|
39 |
"like_feedback": "If you like SlideDeck AI, please consider leaving a heart ❤\uFE0F on the [Hugging Face Space](https://huggingface.co/spaces/barunsaha/slide-deck-ai/) or a star ⭐ on [GitHub](https://github.com/barun-saha/slide-deck-ai). Your [feedback](https://forms.gle/JECFBGhjvSj7moBx9) is appreciated."
|
40 |
}
|