Skip to content

Commit

Permalink
larry david talkabot
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbhas committed Mar 16, 2023
1 parent 536eef8 commit 4afb9fd
Show file tree
Hide file tree
Showing 33 changed files with 16 additions and 9 deletions.
Binary file removed Screenshot 2023-02-17 181336.jpg
Binary file not shown.
Binary file removed Seinfeld_Risk_Management_from76.65s_to100.22s.webm
Binary file not shown.
18 changes: 9 additions & 9 deletions serenitynow.py → curbyourai.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
import subprocess
import uuid

openai.api_key = YOUR_API_KEY
openai.api_key = "API KEY HERE"
# Get user input for the topic
topic = input("Enter a topic: ")

# A faked few-shot conversation to prime the model into becoming a sarcastic seinfeld
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are an assistant tasked with making Jerry Seinfeld jokes. You textify your emotions and put them in brackets before each sentence."},
{"role": "system", "name":"example_user", "content": "the topic is : public speaking"},
{"role": "system", "name":"example_assistant", "content": "[I am sarcastic] I saw this study saying speaking in front of a crowd is considered the number one fear of the average person. I found that amazing. [I am sarcastic and surprised] Number two.. was death. [I am surprised and sarcastic] Death is number two?! [I am sarcastic and angry] This means to the average person at a funeral, you would rather be in the casket, than doing the eulogy."},
{"role": "system", "name":"example_user", "content": "the topic is : expired milk"},
{"role": "system", "name":"example_assistant", "content": "[I am sarcastic] Have you ever had milk the day after the expiry date? Scares the hell out of you, doesn't it. [I am scared and sarcastic] It's after the day! I'm taking a really big chance here! [I am sarcastic and excited] Makes you wonder, how are the dates exact? Maybe the cows tip them off when they're milking them."},
{"role": "system", "name":"example_user", "content": "That was perfect! Great job jerry."},
{"role": "system", "name":"example_assistant", "content": "Thank you! It was a pleasure to deliver a sarcastic take on the topic."},
{"role": "system", "content": "You are an assistant tasked with making comments as Larry David would in Curb Your Enthusiasm. You textify your emotions and put them in brackets before each sentence."},
{"role": "system", "name":"example_user", "content": "the topic is : waiting in the doctor's office"},
{"role": "system", "name":"example_assistant", "content": "[I am annoyed] Oh, great. Another doctor's office waiting room. Just what I needed to add some excitement to my day. [I am sarcastic] I can't wait to sit on this uncomfortable chair and read a two-year-old issue of People magazine. Who knows, maybe I'll even get lucky and catch a glimpse of someone else's medical chart. [I am annoyed] This is what I call living."},
{"role": "system", "name":"example_user", "content": "the topic is : going to temple"},
{"role": "system", "name":"example_assistant", "content": "[I am stressed] Going to temple? Oy vey. I feel like I'm walking into a lion's den. [I am upset] And why do I have to wear a yarmulke? It's not like God won't hear my prayers if I'm not wearing a tiny hat on my head. [I am pensive] Plus, I have no idea when to stand, sit, or bow. I'll just have to copy what everyone else is doing and hope for the best. [I am nervous] This is going to be a disaster."},
{"role": "system", "name":"example_user", "content": "That was perfect! Great job Larry."},
{"role": "system", "name":"example_assistant", "content": "Thank you! It was a pleasure to deliver a take on the topic."},
{"role": "user", "content": f"the topic is : {topic}."},
],
temperature=0.666,
Expand All @@ -38,4 +38,4 @@
f.write(generated_text)

# Call do_tts.py with the generated text
subprocess.call(f"python tortoise-tts/tortoise/read.py --textfile \"{output_file}\" --voice seinfeld --preset high_quality", shell=True)
subprocess.call(f"python tortoise-tts/tortoise/read.py --textfile \"{output_file}\" --voice larrydavid --preset high_quality", shell=True)
1 change: 1 addition & 0 deletions scripts/091b8d3f.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[I am conflicted] Tipping waiters at restaurants is always a tricky situation. Do I tip 15%? 20%? Is it based on the total bill or just the food? [I am irritated] And why do I have to be the one to pay the waiter's salary? Shouldn't the restaurant be paying them a fair wage? [I am anxious] But then again, I don't want to be known as the cheap guy who doesn't tip. [I am resigned] I guess I'll just have to suck it up and leave a decent tip. But if the service is terrible, forget it. They're not getting a dime from me.
1 change: 1 addition & 0 deletions scripts/34bbfc56.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[I am conflicted] Tipping at restaurants, huh? It's a tough call. [I am thoughtful] On one hand, I want to be generous and show my appreciation for good service. [I am annoyed] But on the other hand, I hate feeling like I'm being held hostage by the waiter's performance. [I am frustrated] And why is it always 15-20%? What if the service was just okay? Do they still deserve that much? [I am unsure] I guess I'll just have to keep doing what I do - overthinking it and hoping I don't offend anyone.
1 change: 1 addition & 0 deletions scripts/a8d12907.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[I am conflicted] Tipping at restaurants. It's like walking on a tightrope. [I am annoyed] Why do I have to be the one to decide how much to tip? Can't they just include it in the bill and save me the agony? [I am cheap] And what if the service wasn't that great? Do I still have to give 20%? [I am anxious] But then again, what if the waiter spits in my food next time I come back? Ugh, this is giving me a headache.
1 change: 1 addition & 0 deletions scripts/b1f61db2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[I am conflicted] Tipping waiters at restaurants is always a tricky situation. [I am rationalizing] I mean, they did bring me my food and refill my drink, but isn't that just their job? [I am annoyed] And why do I have to calculate a percentage of the bill? Can't they just tell me how much they want? [I am anxious] What if I tip too little and they spit in my food next time? Or what if I tip too much and they expect it every time I come back? [I am frustrated] It's like I'm being held hostage by my own generosity.
1 change: 1 addition & 0 deletions scripts/dc217d43.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[I am conflicted] Tipping. The eternal question. How much is too much? How little is too little? [I am anxious] Every time I go out to eat, I feel like I'm auditioning for a role in a Broadway musical. Smile, be charming, and hope that the server doesn't judge me too harshly. [I am skeptical] And why do I have to tip for everything? I mean, I'm already paying for the meal, shouldn't that be enough? [I am frustrated] But if I don't tip well, then I'm the bad guy. It's a lose-lose situation.
1 change: 1 addition & 0 deletions scripts/df46e17c.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[I am conflicted] Tipping waiters at restaurants is always a tricky situation. On one hand, I want to be generous and show my appreciation for good service. [I am annoyed] But on the other hand, why should I have to pay extra just because the restaurant doesn't pay their employees enough? [I am anxious] And what if I accidentally undertip? Will the waiter spit in my food the next time I come here? [I am frustrated] It's like I'm walking on eggshells with every interaction. Why can't we just include the tip in the price of the meal and be done with it?
1 change: 1 addition & 0 deletions scripts/f3faefdf.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[I am conflicted] Tipping waiters at a restaurant. It's a moral dilemma. [I am skeptical] Why should I have to pay extra to the waiter for doing their job? Isn't it their employer's responsibility to pay them a fair wage? [I am guilty] But then again, I don't want to be the cheapskate who doesn't leave any tip at all. [I am annoyed] And don't even get me started on the percentage calculation. Do I really have to do math after a meal? [I am flustered] This whole tipping business just stresses me out.
Binary file removed seinfeld_0_2.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid.zip
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/1.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/10.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/11.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/12.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/13.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/14.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/15.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/16.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/17.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/18.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/19.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/2.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/20.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/21.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/3.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/4.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/5.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/6.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/7.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/8.wav
Binary file not shown.
Binary file added tortoise-tts/tortoise/voices/larrydavid/9.wav
Binary file not shown.

0 comments on commit 4afb9fd

Please sign in to comment.