not-lain commited on
Commit
6774d3f
1 Parent(s): dd02a29

Upload app

Browse files
Files changed (3) hide show
  1. app.py +22 -0
  2. content.txt +12 -0
  3. requirements.txt +1 -0
app.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ qa_model = pipeline("question-answering", "timpal0l/mdeberta-v3-base-squad2")
5
+
6
+ description="""
7
+ A resume question-answering interface where a recruter can ask the user about their achievements and skills without the need to interact with them directly or the need to read a really long resume
8
+
9
+ **LIMITATIONS:** the bot can only extract specific information and does not take into account multiple sentences at once.
10
+ """
11
+ examples = ["what's your name?", "what's your email adress ?", "what did you study ?","are you open for work?","what are your skills ?","what's your most recent experience ?"]
12
+
13
+ with open("context.txt","r") as f:
14
+ # read content from the resume
15
+ context = f.read()
16
+
17
+ def chat(question,history):
18
+ """chat with the QA pipeline"""
19
+ return qa_model(question = question, context = context)["answer"].strip()
20
+
21
+ demo = gr.ChatInterface(fn=chat, examples=examples, title="Resume QA",description=description)
22
+ demo.launch()
content.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ My name is hafedh hichri a computer science graduate from Tunisa.
2
+ you can contact me through my email address hhichri60@gmail.com or thorough my website https://not-lain.github.io/ .
3
+ I have studied computer science and engineering in Enetcom and i have a masters degree in computer science and engineering.
4
+ My skills include python,transformers,TensorFlow,Pytorch,Keras,Gradio,Git,deep-learning,NLP,computer-vision,SQL.
5
+ As for my experience, I have worked as an AI engineering intern at Instadeep and an instructor at 2S-academy.
6
+ when i was working at instadeep i processed 2 online handwriting datasets, introducing a new format that improved data quality and efficiency,spearheaded the development of a LLM for Arabic online handwriting recognition with a 7.8% CER,analyzed 8 research papers leading to extraction of key elements in the project,led integration of 19 interns by organizing 3 social events and moderating 2 group chats.
7
+ when i was working at 2S-academy delivered python and AI courses to 20 students in 3 different groups ensuring comprehensive understanding,increased reviews by 8% by introducing a quiz-based learning approach,composed comprehensive learning guidelines by authoring 2 documents for each learning path.
8
+ for my achievements I attained a perfect 5/5 score across all sections of the Google TensorFlow Developer exam, achieved HuggingFace's Certificate of Excellence through successful completion of 4 challenging assignments,administered social media group reaching 300 thousand members by January 2024.
9
+ for my open source contributions i contributed to transformers library with 2 pull requests fixing minor problems,addressed diverse issues on GitHub and Stack Overflow, achieving recognition with 4 trophies on Stack Overflow,held more than 60 sessions about AI for more than 3000 university students,automated deepfake detection and localization pipeline reaching 145 downloads in 7 days,converted TUNBERT model from nemo to transformers library reaching 68 downloads,fixed multiple spaces and repos across the hub reaching 40 contributions.
10
+ something you don't know about me is that i administer a 300K facebook-group.
11
+ i love AI and engaging with people. I also love keeping communities safe and welcoming.
12
+ i am currently open for work and would appreciate it if you can hire me 🤗
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ transformers