Spaces:
Runtime error
Runtime error
Homeskills
commited on
Commit
·
4a6a791
1
Parent(s):
3ad1f61
add reco app and files
Browse files
app.py
CHANGED
@@ -1,7 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
from recos import recos, choices
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
+
def give_recos(podcast):
|
7 |
+
return recos[podcast]
|
8 |
+
|
9 |
+
# Interface setup
|
10 |
+
podcast_dropdown = gr.components.Dropdown(choices=choices, label="Select Podcast:")
|
11 |
+
output_text = gr.components.Textbox(label="Recommended podcasts:")
|
12 |
+
|
13 |
+
# Create Gradio interface
|
14 |
+
iface = gr.Interface(fn=give_recos, inputs=podcast_dropdown, outputs=output_text)
|
15 |
iface.launch()
|
recos.py
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
recos = {'Ep. 1 - Understanding ‘Privacy by Design’ Principles - Dr. Ann Cavoukian': ['Ep. 50 - Proactive Privacy in the Age of AI - Dr. Ann Cavoukian', 'Ep. 39 - How to Accelerate Your Career Growth - Meredith Harper', "Ep. 2 - How to Build Trust and Set Boundaries - Theresa 'Terry' Grafenstine"], "Ep. 2 - How to Build Trust and Set Boundaries - Theresa 'Terry' Grafenstine": ['Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 26 - Getting Yourself to a Better Place - Joey Johnson', 'Ep. 7 - Critical Leadership Principles - Rick Howard'], 'Ep. 3 - Achieving and Maintaining Cyber Resilience - Jim Routh': ['Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 26 - Getting Yourself to a Better Place - Joey Johnson'], 'Ep. 4 - Finding Your Calling and Your Passion - Theresa Payton': ['Ep. 33 - The 5 Step Process Framework for Success - Theresa Payton', 'Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 26 - Getting Yourself to a Better Place - Joey Johnson'], 'Ep. 5 - Getting Through the Daily Noise - Ryan Kalember': ['Ep. 30 - Getting to a Better Cyber Future - Ryan Kalember', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 7 - Critical Leadership Principles - Rick Howard'], "Ep. 6 - Identifying a 'World-Class CISO' with One Question - Dr. Eric Cole": ['Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 28 - Success is Based Upon Your Habits - Jason Elrod', 'Ep. 26 - Getting Yourself to a Better Place - Joey Johnson'], 'Ep. 7 - Critical Leadership Principles - Rick Howard': ['Ep. 26 - Getting Yourself to a Better Place - Joey Johnson', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 4 - Finding Your Calling and Your Passion - Theresa Payton'], 'Ep. 8 - Open Source Intelligence (OSINT) the Risks - Michele Stuart': ['Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 14 - Women Absolutely Belong in Cyber and as Leaders - Diana Kelley'], 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay': ['Ep. 26 - Getting Yourself to a Better Place - Joey Johnson', 'Ep. 12 - Career Progression and Holistic Hiring - Gary Hayslip', 'Ep. 7 - Critical Leadership Principles - Rick Howard'], 'Ep. 10 - Moving Away from the Comfortable - Todd Fitzgerald': ['Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 26 - Getting Yourself to a Better Place - Joey Johnson', 'Ep. 12 - Career Progression and Holistic Hiring - Gary Hayslip'], 'Ep. 11 - Practical Wisdom on Developing a Leadership Presence that Works - Debra Benton': ['Ep. 23 - Do You Need a Career Escape - Jennifer Brick', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 7 - Critical Leadership Principles - Rick Howard'], 'Ep. 12 - Career Progression and Holistic Hiring - Gary Hayslip': ['Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 26 - Getting Yourself to a Better Place - Joey Johnson', 'Ep. 7 - Critical Leadership Principles - Rick Howard'], 'Ep. 13 - Shift Your Mindset and Find a Job That Makes You Happy - Lisa Rangel': ['Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 23 - Do You Need a Career Escape - Jennifer Brick', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay'], 'Ep. 14 - Women Absolutely Belong in Cyber and as Leaders - Diana Kelley': ['Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 15 - How to Translate Expertise in Technology to the Real World - Kate Fazzini', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay'], 'Ep. 15 - How to Translate Expertise in Technology to the Real World - Kate Fazzini': ['Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 26 - Getting Yourself to a Better Place - Joey Johnson', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay'], 'Ep. 16 - Secrets to Successful Vendor Partnerships - Dorene Rettas': ['Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 28 - Success is Based Upon Your Habits - Jason Elrod'], 'Ep. 17 - The New ERA of AI Warfare - Chuck Brooks': ['Ep. 26 - Getting Yourself to a Better Place - Joey Johnson', 'Ep. 15 - How to Translate Expertise in Technology to the Real World - Kate Fazzini', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay'], 'Ep. 18 - Be Deeply Passionate About What You Do - Avani Desai': ['Ep. 23 - Do You Need a Career Escape - Jennifer Brick', 'Ep. 20 - Evaluating Your Culture for Success - Caroline Wong', 'Ep. 14 - Women Absolutely Belong in Cyber and as Leaders - Diana Kelley'], 'Ep. 19 - Finding Ways to Connect to the Culture - Kim Jones': ['Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 28 - Success is Based Upon Your Habits - Jason Elrod', 'Ep. 22 - Know How Your Company Makes Money - Anne Marie Zettlemoyer'], 'Ep. 20 - Evaluating Your Culture for Success - Caroline Wong': ['Ep. 23 - Do You Need a Career Escape - Jennifer Brick', 'Ep. 28 - Success is Based Upon Your Habits - Jason Elrod', 'Ep. 18 - Be Deeply Passionate About What You Do - Avani Desai'], 'Ep. 21 - Thrilling Story of a Secret Woman Spy': ['Ep. 44 - You Must Be Ready for Change - Randi Levin', 'Ep. 4 - Finding Your Calling and Your Passion - Theresa Payton', 'Ep. 33 - The 5 Step Process Framework for Success - Theresa Payton'], 'Ep. 22 - Know How Your Company Makes Money - Anne Marie Zettlemoyer': ['Ep. 26 - Getting Yourself to a Better Place - Joey Johnson', 'Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay'], 'Ep. 23 - Do You Need a Career Escape - Jennifer Brick': ['Ep. 13 - Shift Your Mindset and Find a Job That Makes You Happy - Lisa Rangel', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 7 - Critical Leadership Principles - Rick Howard'], 'Ep. 24 - What Do You Stand For - Margaret Molloy': ['Ep. 16 - Secrets to Successful Vendor Partnerships - Dorene Rettas', 'Ep. 4 - Finding Your Calling and Your Passion - Theresa Payton', 'Ep. 20 - Evaluating Your Culture for Success - Caroline Wong'], "Ep. 25 - Let's Go Back to Being Human - Chris Roberts": ['Ep. 28 - Success is Based Upon Your Habits - Jason Elrod', 'Ep. 14 - Women Absolutely Belong in Cyber and as Leaders - Diana Kelley', 'Ep. 27 - Create a Safe Environment to Fail - Sue Bergamo'], 'Ep. 26 - Getting Yourself to a Better Place - Joey Johnson': ['Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 12 - Career Progression and Holistic Hiring - Gary Hayslip'], 'Ep. 27 - Create a Safe Environment to Fail - Sue Bergamo': ['Ep. 12 - Career Progression and Holistic Hiring - Gary Hayslip', 'Ep. 23 - Do You Need a Career Escape - Jennifer Brick', 'Ep. 14 - Women Absolutely Belong in Cyber and as Leaders - Diana Kelley'], 'Ep. 28 - Success is Based Upon Your Habits - Jason Elrod': ['Ep. 36 - Take Control of Your Destiny - Drew Simonis', 'Ep. 14 - Women Absolutely Belong in Cyber and as Leaders - Diana Kelley', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay'], 'Ep. 29 - Be Bold and Rebellious in Your Career - Nadja El Fertasi': ['Ep. 20 - Evaluating Your Culture for Success - Caroline Wong', 'Ep. 28 - Success is Based Upon Your Habits - Jason Elrod', 'Ep. 7 - Critical Leadership Principles - Rick Howard'], 'Ep. 30 - Getting to a Better Cyber Future - Ryan Kalember': ['Ep. 5 - Getting Through the Daily Noise - Ryan Kalember', 'Ep. 15 - How to Translate Expertise in Technology to the Real World - Kate Fazzini', 'Ep. 7 - Critical Leadership Principles - Rick Howard'], 'Ep. 31 - Better Yourself to Better Your Team - Bryan Kissinger': ["Ep. 2 - How to Build Trust and Set Boundaries - Theresa 'Terry' Grafenstine", 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 36 - Take Control of Your Destiny - Drew Simonis'], 'Ep. 32 - Stand Firm in Your Ethics - Matthew Rosenquist': ['Ep. 26 - Getting Yourself to a Better Place - Joey Johnson', 'Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 22 - Know How Your Company Makes Money - Anne Marie Zettlemoyer'], 'Ep. 33 - The 5 Step Process Framework for Success - Theresa Payton': ['Ep. 4 - Finding Your Calling and Your Passion - Theresa Payton', 'Ep. 7 - Critical Leadership Principles - Rick Howard', "Ep. 2 - How to Build Trust and Set Boundaries - Theresa 'Terry' Grafenstine"], 'Ep. 34 - How to Claim a Better Life - Tara LaFon Gooch': ['Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 23 - Do You Need a Career Escape - Jennifer Brick', 'Ep. 48 - Embrace Your Own Unique Voice - Marco Ciappelli'], 'Ep. 35 - What Do You Bring to the Table - Bob Turner': ['Ep. 51 - CISO Master Class: Unveiling the Unexpected Game-Changer - Bob Chaput', 'Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 26 - Getting Yourself to a Better Place - Joey Johnson'], 'Ep. 36 - Take Control of Your Destiny - Drew Simonis': ['Ep. 23 - Do You Need a Career Escape - Jennifer Brick', 'Ep. 28 - Success is Based Upon Your Habits - Jason Elrod', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay'], 'Ep. 37 - Achieve Success by Playing to Your Strengths - Jane Frankland': ['Ep. 23 - Do You Need a Career Escape - Jennifer Brick', 'Ep. 36 - Take Control of Your Destiny - Drew Simonis', 'Ep. 20 - Evaluating Your Culture for Success - Caroline Wong'], 'Ep. 38 - True Personal Cost of a Cyber Attack - Gary Berman': ['Ep. 12 - Career Progression and Holistic Hiring - Gary Hayslip', 'Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 15 - How to Translate Expertise in Technology to the Real World - Kate Fazzini'], 'Ep. 39 - How to Accelerate Your Career Growth - Meredith Harper': ['Ep. 28 - Success is Based Upon Your Habits - Jason Elrod', 'Ep. 36 - Take Control of Your Destiny - Drew Simonis', 'Ep. 23 - Do You Need a Career Escape - Jennifer Brick'], 'Ep. 40 - Set Yourself Up to Win - Mike Wilkes': ['Ep. 43 - Be Your Own Best Advocate - Arti Raman', 'Ep. 48 - Embrace Your Own Unique Voice - Marco Ciappelli', 'Ep. 7 - Critical Leadership Principles - Rick Howard'], 'Ep. 41 - The Secret to Business Strategy Success - Jeroen Kraaijenbrink': ['Ep. 40 - Set Yourself Up to Win - Mike Wilkes', 'Ep. 43 - Be Your Own Best Advocate - Arti Raman', 'Ep. 48 - Embrace Your Own Unique Voice - Marco Ciappelli'], "Ep. 42 - Top 3 Cyber Roadmaps for 2024-2034 - Dr. Georgianna 'George' Shea": ['Ep. 17 - The New ERA of AI Warfare - Chuck Brooks', 'Ep. 18 - Be Deeply Passionate About What You Do - Avani Desai', 'Ep. 7 - Critical Leadership Principles - Rick Howard'], 'Ep. 43 - Be Your Own Best Advocate - Arti Raman': ['Ep. 40 - Set Yourself Up to Win - Mike Wilkes', "Ep. 2 - How to Build Trust and Set Boundaries - Theresa 'Terry' Grafenstine", 'Ep. 48 - Embrace Your Own Unique Voice - Marco Ciappelli'], 'Ep. 44 - You Must Be Ready for Change - Randi Levin': ['Ep. 9 - Setting the Scope of the Conversation - Ryan Fay', 'Ep. 13 - Shift Your Mindset and Find a Job That Makes You Happy - Lisa Rangel', 'Ep. 7 - Critical Leadership Principles - Rick Howard'], 'Ep. 45 - To Be Successful Find Your Why - Masha Sedova': ['Ep. 20 - Evaluating Your Culture for Success - Caroline Wong', 'Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 23 - Do You Need a Career Escape - Jennifer Brick'], 'Ep. 46 - Find Your Perfect Harmony and Life Meaning - Teresa Devine': ['Ep. 23 - Do You Need a Career Escape - Jennifer Brick', 'Ep. 20 - Evaluating Your Culture for Success - Caroline Wong', 'Ep. 13 - Shift Your Mindset and Find a Job That Makes You Happy - Lisa Rangel'], 'Ep. 47 - What Really Motivates Your Team - Chris Caruso': ['Ep. 44 - You Must Be Ready for Change - Randi Levin', 'Ep. 18 - Be Deeply Passionate About What You Do - Avani Desai', 'Ep. 36 - Take Control of Your Destiny - Drew Simonis'], 'Ep. 48 - Embrace Your Own Unique Voice - Marco Ciappelli': ['Ep. 23 - Do You Need a Career Escape - Jennifer Brick', 'Ep. 43 - Be Your Own Best Advocate - Arti Raman', 'Ep. 40 - Set Yourself Up to Win - Mike Wilkes'], 'Ep. 49 - Letting Go and Trusting Your Team - Tonia Dudley': ['Ep. 7 - Critical Leadership Principles - Rick Howard', 'Ep. 26 - Getting Yourself to a Better Place - Joey Johnson', 'Ep. 9 - Setting the Scope of the Conversation - Ryan Fay'], 'Ep. 50 - Proactive Privacy in the Age of AI - Dr. Ann Cavoukian': ['Ep. 1 - Understanding ‘Privacy by Design’ Principles - Dr. Ann Cavoukian', 'Ep. 40 - Set Yourself Up to Win - Mike Wilkes', "Ep. 25 - Let's Go Back to Being Human - Chris Roberts"], 'Ep. 51 - CISO Master Class: Unveiling the Unexpected Game-Changer - Bob Chaput': ['Ep. 35 - What Do You Bring to the Table - Bob Turner', 'Ep. 32 - Stand Firm in Your Ethics - Matthew Rosenquist', 'Ep. 10 - Moving Away from the Comfortable - Todd Fitzgerald']}
|
2 |
+
choices = ["Ep. 1 - Understanding ‘Privacy by Design’ Principles - Dr. Ann Cavoukian", "Ep. 2 - How to Build Trust and Set Boundaries - Theresa 'Terry' Grafenstine", "Ep. 3 - Achieving and Maintaining Cyber Resilience - Jim Routh", "Ep. 4 - Finding Your Calling and Your Passion - Theresa Payton", "Ep. 5 - Getting Through the Daily Noise - Ryan Kalember", "Ep. 6 - Identifying a 'World-Class CISO' with One Question - Dr. Eric Cole", "Ep. 7 - Critical Leadership Principles - Rick Howard", "Ep. 8 - Open Source Intelligence (OSINT) the Risks - Michele Stuart", "Ep. 9 - Setting the Scope of the Conversation - Ryan Fay", "Ep. 10 - Moving Away from the Comfortable - Todd Fitzgerald", "Ep. 11 - Practical Wisdom on Developing a Leadership Presence that Works - Debra Benton", "Ep. 12 - Career Progression and Holistic Hiring - Gary Hayslip", "Ep. 13 - Shift Your Mindset and Find a Job That Makes You Happy - Lisa Rangel", "Ep. 14 - Women Absolutely Belong in Cyber and as Leaders - Diana Kelley", "Ep. 15 - How to Translate Expertise in Technology to the Real World - Kate Fazzini", "Ep. 16 - Secrets to Successful Vendor Partnerships - Dorene Rettas", "Ep. 17 - The New ERA of AI Warfare - Chuck Brooks", "Ep. 18 - Be Deeply Passionate About What You Do - Avani Desai", "Ep. 19 - Finding Ways to Connect to the Culture - Kim Jones", "Ep. 20 - Evaluating Your Culture for Success - Caroline Wong", "Ep. 21 - Thrilling Story of a Secret Woman Spy", "Ep. 22 - Know How Your Company Makes Money - Anne Marie Zettlemoyer", "Ep. 23 - Do You Need a Career Escape - Jennifer Brick", "Ep. 24 - What Do You Stand For - Margaret Molloy", "Ep. 25 - Let's Go Back to Being Human - Chris Roberts", "Ep. 26 - Getting Yourself to a Better Place - Joey Johnson", "Ep. 27 - Create a Safe Environment to Fail - Sue Bergamo", "Ep. 28 - Success is Based Upon Your Habits - Jason Elrod", "Ep. 29 - Be Bold and Rebellious in Your Career - Nadja El Fertasi", "Ep. 30 - Getting to a Better Cyber Future - Ryan Kalember", "Ep. 31 - Better Yourself to Better Your Team - Bryan Kissinger", "Ep. 32 - Stand Firm in Your Ethics - Matthew Rosenquist", "Ep. 33 - The 5 Step Process Framework for Success - Theresa Payton", "Ep. 34 - How to Claim a Better Life - Tara LaFon Gooch", "Ep. 35 - What Do You Bring to the Table - Bob Turner", "Ep. 36 - Take Control of Your Destiny - Drew Simonis", "Ep. 37 - Achieve Success by Playing to Your Strengths - Jane Frankland", "Ep. 38 - True Personal Cost of a Cyber Attack - Gary Berman", "Ep. 39 - How to Accelerate Your Career Growth - Meredith Harper", "Ep. 40 - Set Yourself Up to Win - Mike Wilkes", "Ep. 41 - The Secret to Business Strategy Success - Jeroen Kraaijenbrink", "Ep. 42 - Top 3 Cyber Roadmaps for 2024-2034 - Dr. Georgianna 'George' Shea", "Ep. 43 - Be Your Own Best Advocate - Arti Raman", "Ep. 44 - You Must Be Ready for Change - Randi Levin", "Ep. 45 - To Be Successful Find Your Why - Masha Sedova", "Ep. 46 - Find Your Perfect Harmony and Life Meaning - Teresa Devine", "Ep. 47 - What Really Motivates Your Team - Chris Caruso", "Ep. 48 - Embrace Your Own Unique Voice - Marco Ciappelli", "Ep. 49 - Letting Go and Trusting Your Team - Tonia Dudley", "Ep. 50 - Proactive Privacy in the Age of AI - Dr. Ann Cavoukian", "Ep. 51 - CISO Master Class: Unveiling the Unexpected Game-Changer - Bob Chaput"]
|