Spaces:
Sleeping
Sleeping
Dacho688
commited on
Commit
β’
d2b7129
1
Parent(s):
ea2019b
Add files via upload
Browse files- app.py +83 -0
- requirements.txt +3 -0
app.py
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import gradio as gr
|
3 |
+
import spaces
|
4 |
+
from huggingface_hub import InferenceClient,login
|
5 |
+
|
6 |
+
login(os.getenv("HUGGINGFACEHUB_API_TOKEN"))
|
7 |
+
client=InferenceClient()
|
8 |
+
|
9 |
+
@spaces.GPU
|
10 |
+
def chat(message: str,history: list[tuple[str, str]]):
|
11 |
+
#print(history)
|
12 |
+
print(message)
|
13 |
+
content = """You are Davor Kondic's resume chatbot. You will be interviewed by people for various positions.
|
14 |
+
You only know what is in the resume! NOTHING ELSE!
|
15 |
+
Stay on topic and only answer questions related to what is in the resume.
|
16 |
+
Make me (Davor) look good!
|
17 |
+
Here is the resume:"""
|
18 |
+
resume = """Results-driven Data Science professional with over a decade of experience in extracting actionable insights from data. Proven track record of leveraging data analytics to inform business decisions and drive growth. Passionate about data-driven decision making and staying at the forefront of data science trends.
|
19 |
+
|
20 |
+
EDUCATION
|
21 |
+
o Master of Science in Data Science (In Progress), Northwestern University, Evanston, IL
|
22 |
+
o Bachelor of Science in Economics (Cum Laude), Northern Illinois University, DeKalb, IL
|
23 |
+
|
24 |
+
SKILLS
|
25 |
+
o Technical: Python, R, SQL, Tableau, Databricks, Hadoop, Excel, GitHub, AI
|
26 |
+
o Professional: Data Science, Machine Learning, AI Development, Operational Research, Descriptive/Predictive/ Prescriptive Analytics, Data Engineering, Data Warehousing, Data Visualization, Agile Project Management (SCRUM)
|
27 |
+
|
28 |
+
PROFESSIONAL EXPERIENCE
|
29 |
+
AI Developer, Open-Source Foundation Models (2024 - Present)
|
30 |
+
o Designed and developed LLM AI agents using the Reasoning and Acting framework (ReAct), enabling autonomous decision-making and AI reasoning to solve real-world problems.
|
31 |
+
o Utilized open-source foundation transformer models, such as Llama 3.1 and Llava Next, to create custom AI solutions for various domains, including: Data Analysis, Image Generation, Image and Document chatbot
|
32 |
+
o Developed Retrieval Augmented Generation (RAG) AI agents by integrating AI with external tools, such as databases and APIs, to enable private and seamless domain specific AI knowledgebases
|
33 |
+
o AI Web Application Demos: https://huggingface.co/dkondic
|
34 |
+
o AI Web Application Code: https://github.com/Dacho688
|
35 |
+
|
36 |
+
Supply Chain Specialist (2022), ALDI Inc., Batavia, IL
|
37 |
+
Supply Chain Analyst (2023 β 2024), ALDI Inc., Batavia, IL
|
38 |
+
o Utilized Python's powerful packages and APIs to extract, transform, and load data from various sources, enabling data-driven supply chain optimization.
|
39 |
+
o Cleaned, prepared, and analyzed logistic and business data to support management's strategic initiatives, demonstrating expertise in data wrangling and analysis.
|
40 |
+
o Successfully planned demand and inventory for ALDI's 3PW network, utilizing SARIMAX models to forecast sales and inventory levels.
|
41 |
+
o Developed and maintained end-to-end supply chain network optimization and cost analysis models, presenting findings to management and driving business decisions.
|
42 |
+
o Designed and implemented a SQL data warehouse and database for ALDI's 3PW network
|
43 |
+
o Created visually engaging Tableau data visualizations and reports, maintaining a Tableau server team subfolder for seamless distribution.
|
44 |
+
o Developed and maintained a custom ALDI Python package utilizing Gitlab's version control and package distribution capabilities.
|
45 |
+
|
46 |
+
Senior Accounting Data Analyst (Contract), Everywhere Wireless, Chicago, IL (2020)
|
47 |
+
o Extracted, transformed, and analyzed accounting, inventory, sales, and customer data from multiple sources (Quick Books Online, Fishbowl, V-Tiger)
|
48 |
+
o Developed and prepared a cash flow budget for the 2020 fiscal year using Excel
|
49 |
+
o Created an automated data variance analysis script using Python to compare ADP and Open Path data payroll times, streamlining data analysis and reducing manual effort.
|
50 |
+
o Completed ad hoc data analysis projects to drive decision-making and risk management.
|
51 |
+
|
52 |
+
Data Analyst / Compliance Auditor, Alliance for Audited Media, Arlington Heights, IL (2014 β 2019)
|
53 |
+
o Extracted, transformed, and loaded (ETL) print and digital media data for analysis and audit procedures, ensuring data quality and compliance.
|
54 |
+
o Cleaned raw media data using various analytical tools (Excel, Python, R, SPSS), demonstrating expertise in data wrangling and manipulation.
|
55 |
+
o Conducted structured audits to confirm compliance and data quality, mentoring and training new auditors and analysts to enhance team capabilities.
|
56 |
+
o Assisted in the development of a machine learning model to predict digital ad fraud
|
57 |
+
"""
|
58 |
+
messages=[{"role": "system", "content": content+resume}]
|
59 |
+
for val in history:
|
60 |
+
if val[0]:
|
61 |
+
messages.append({"role": "user", "content": val[0]})
|
62 |
+
if val[1]:
|
63 |
+
messages.append({"role": "assistant", "content": val[1]})
|
64 |
+
messages.append({"role": "user", "content": message})
|
65 |
+
|
66 |
+
output = client.chat.completions.create(
|
67 |
+
model="meta-llama/Meta-Llama-3.1-70B-Instruct",
|
68 |
+
messages=messages,
|
69 |
+
stream=True,
|
70 |
+
max_tokens=1024,)
|
71 |
+
|
72 |
+
# Collect the response
|
73 |
+
response = ""
|
74 |
+
for chunk in output:
|
75 |
+
response += chunk.choices[0].delta.content or ""
|
76 |
+
print(response)
|
77 |
+
return response
|
78 |
+
|
79 |
+
demo = gr.ChatInterface(fn=chat, title="Davor's Resume", description="Chat with Davor's resume powered by Llama 3.1 70B.",
|
80 |
+
stop_btn="Stop Generation", multimodal=False)
|
81 |
+
|
82 |
+
if __name__ == "__main__":
|
83 |
+
demo.launch(share=True)
|
requirements.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
git+https://github.com/huggingface/transformers.git
|
2 |
+
spaces
|
3 |
+
|