Jimmy0866 commited on
Commit
aebb71a
·
verified ·
1 Parent(s): 321048b

bug fixed

Files changed (3) hide show
  1. README.md +14 -1
  2. app.py +1 -1
  3. example1.txt +7 -0
README.md CHANGED
@@ -31,4 +31,17 @@ To see all the available arguments, run `python app.py --help`.
31
 
32
  ```bash
33
  pip install -r requirements.txt
34
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
  ```bash
33
  pip install -r requirements.txt
34
+ ```
35
+
36
+ ## 📁 Using Example Files
37
+
38
+ To use the "Examples" dropdown in the UI, create an `examples/` folder in the root directory and add one or more `.txt` files.
39
+
40
+ Each file will appear as a selectable example for summarization. Here's how:
41
+
42
+ ```
43
+ examples/
44
+ └── example1.txt
45
+ ```
46
+
47
+ > Note: The app gracefully handles missing `examples/` folder — no error will occur even if it's absent.
app.py CHANGED
@@ -524,7 +524,7 @@ if __name__ == "__main__":
524
  example_name = gr.Dropdown(
525
  _examples,
526
  label="Examples",
527
- value=random.choice(_examples),
528
  )
529
  uploaded_file = gr.File(
530
  label="File Upload",
 
524
  example_name = gr.Dropdown(
525
  _examples,
526
  label="Examples",
527
+ value=default_example,
528
  )
529
  uploaded_file = gr.File(
530
  label="File Upload",
example1.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ In recent years, artificial intelligence (AI) has dramatically reshaped the landscape of education. From personalized learning platforms to AI-driven assessment tools, educators are now leveraging technology to enhance both teaching and learning outcomes. One of the key advantages of AI integration is its ability to analyze large datasets to identify student learning patterns, allowing for real-time interventions and support.
2
+
3
+ For instance, adaptive learning systems can customize content delivery based on each student’s progress and comprehension level. This not only improves engagement but also boosts retention. Additionally, AI chatbots are increasingly used to provide students with instant feedback, answer common questions, and guide them through administrative processes.
4
+
5
+ Despite these benefits, challenges remain. Data privacy, algorithmic bias, and the digital divide continue to raise ethical and practical concerns. Nevertheless, as AI technologies become more refined and accessible, their role in shaping the future of education is expected to grow significantly.
6
+
7
+ Educators, policymakers, and technologists must collaborate to ensure that AI is deployed responsibly and equitably in educational settings. With thoughtful implementation, AI has the potential to transform education into a more inclusive, efficient, and personalized experience for all learners.