eagle0504 commited on
Commit
c69a0b4
Β·
verified Β·
1 Parent(s): ef3a9ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -0
app.py CHANGED
@@ -5,6 +5,37 @@ import tempfile
5
 
6
  def main():
7
  st.title("PDF Question-Answer Generator")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  # Sidebar for uploading the PDF file
10
  st.sidebar.title("Upload PDF")
 
5
 
6
  def main():
7
  st.title("PDF Question-Answer Generator")
8
+
9
+ # Expander in the sidebar for instruction
10
+ with st.sidebar.expander("Instruction"):
11
+ st.write('''
12
+ πŸŽ‰ Introducing Huggify-Data: Your Ultimate PDF Data Scraping and Uploading Tool! πŸŽ‰
13
+
14
+ πŸ‘‹ I'm thrilled to present the new user-friendly interface for my Python package, huggify-data. This powerful tool simplifies the process of scraping data from PDFs and generating question and answer pairs using OpenAI, making it perfect for building conversational chatbots. πŸ€–βœ¨
15
+
16
+ πŸš€ Key Features:
17
+ 1. Easy PDF Data Extraction: Quickly scrape text content from PDFs and convert it into a structured data frame.
18
+ 2. Automated Question-Answer Pair Generation: Extract meaningful question-answer pairs from your PDF content, ideal for training chatbots.
19
+ 3. User-Friendly Interface: Interact with the package without any programming experience, making information accessibility easier and more efficient.
20
+
21
+ πŸ”§ How It Works:
22
+ - API Key: Add your OpenAI API Key.
23
+ - Load Your PDF: Easily load any PDF file into the library.
24
+ - Just wait: Wait and download the `.csv` from the app.
25
+
26
+ πŸ“ˆ Why Huggify-Data?
27
+ Whether you're a data scientist, developer, or AI enthusiast, Huggify-Data streamlines the process of preparing your PDF data for AI applications. It's never been easier to transform your PDFs into valuable datasets for building conversational AI models.
28
+
29
+ πŸ”— Links:
30
+ - **GitHub Repository**: [https://lnkd.in/eJEJebcw](https://lnkd.in/eJEJebcw)
31
+ - **Documentation**: [https://lnkd.in/eF9JFXAP](https://lnkd.in/eF9JFXAP)
32
+ - **Notebook**: [https://lnkd.in/eaA2qaPt](https://lnkd.in/eaA2qaPt)
33
+ - **App**: [https://huggingface.co/spaces/eagle0504/huggify-data](https://huggingface.co/spaces/eagle0504/huggify-data)
34
+
35
+ Don't forget to like, comment, and subscribe for more updates and tutorials on AI and data science! πŸ‘πŸ””
36
+
37
+ #HuggifyData #PythonLibrary #AI #DataScience #HuggingFace #PDFScraping #Chatbot #OpenSource #Yiqiao
38
+ ''')
39
 
40
  # Sidebar for uploading the PDF file
41
  st.sidebar.title("Upload PDF")