Saswat84 commited on
Commit
283bdbd
·
verified ·
1 Parent(s): ab1e1c2

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +8 -6
  2. app.py +4 -5
  3. requirements.txt +1 -0
README.md CHANGED
@@ -1,12 +1,14 @@
1
  ---
2
- title: My Action Item Model
3
- emoji: 🦀
4
- colorFrom: green
5
- colorTo: pink
6
  sdk: gradio
7
- sdk_version: 5.47.2
8
  app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
1
  ---
2
+ title: Action Item Extractor
3
+ emoji: 🔥
4
+ colorFrom: blue
5
+ colorTo: purple
6
  sdk: gradio
7
+ sdk_version: 3.50.2
8
  app_file: app.py
9
  pinned: false
10
  ---
11
 
12
+ # Action Item & Deadline Extractor
13
+
14
+ A powerful tool that extracts action items, assignees, and deadlines from meeting transcripts.
app.py CHANGED
@@ -1,7 +1,6 @@
1
  import gradio as gr
2
  import re
3
  import datefinder
4
- from datetime import datetime
5
 
6
  class AdvancedActionItemExtractor:
7
  def __init__(self):
@@ -54,13 +53,13 @@ def extract_action_items(text):
54
  action_items = extractor.extract(text)
55
  return extractor.format_output(action_items)
56
 
57
- iface = gr.Interface(
58
  fn=extract_action_items,
59
- inputs=gr.Textbox(lines=5, placeholder="Paste meeting transcript here...", label="Meeting Transcript"),
60
  outputs=gr.Textbox(lines=10, label="Extracted Action Items"),
61
  title="Action Item & Deadline Extractor",
62
- examples=[["Mike will set up Flask project by Oct 5. Emily should create React prototype by Oct 7."]]
63
  )
64
 
65
  if __name__ == "__main__":
66
- iface.launch()
 
1
  import gradio as gr
2
  import re
3
  import datefinder
 
4
 
5
  class AdvancedActionItemExtractor:
6
  def __init__(self):
 
53
  action_items = extractor.extract(text)
54
  return extractor.format_output(action_items)
55
 
56
+ demo = gr.Interface(
57
  fn=extract_action_items,
58
+ inputs=gr.Textbox(lines=5, placeholder="Paste meeting transcript here...\nExample: Mike will set up Flask project by Oct 5."),
59
  outputs=gr.Textbox(lines=10, label="Extracted Action Items"),
60
  title="Action Item & Deadline Extractor",
61
+ description="Extract action items, assignees, and deadlines from meeting transcripts"
62
  )
63
 
64
  if __name__ == "__main__":
65
+ demo.launch()
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
  regex>=2022.3.15
2
  datefinder>=0.7.1
 
 
1
  regex>=2022.3.15
2
  datefinder>=0.7.1
3
+ gradio>=3.0.0