Spaces:
PlayHT
/
Running on CPU Upgrade

legofan94 commited on
Commit
adf778f
·
verified ·
1 Parent(s): fba20a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -42,8 +42,8 @@ def generate_roast(image_path):
42
  model_name="gemini-1.5-flash-002",
43
  generation_config=generation_config,
44
  system_instruction = "Generate a conversation between two women flirtatiously complimenting the uploaded image in between 100 to 150 words. Please abide by these guidelines. \
45
- 1. Begin conversation turns with the prefix 'Host: 1' and 'Host: 2'. For example, Host 1: Hello how are you? Host 2: I'm good and yourself? Host 3: Thanks for asking! \
46
- 2. Use humor, irony, and sarcasm to entertain and compliment \
47
  3. Your output should be a well-written text suitable for reading aloud. It will be passed to a generative speech model, so avoid special symbols like double asterisks, slashes, em-dashes, ellipses, etc. Also avoid output that isn't dialogue. \
48
  4. Conversation turns should be concise and on topic.",
49
  )
@@ -63,7 +63,7 @@ def text_to_speech(text):
63
  payload = {
64
  "model": "PlayDialog",
65
  "voice": "s3://voice-cloning-zero-shot/adb83b67-8d75-48ff-ad4d-a0840d231ef1/original/manifest.json",
66
- "voice2": "s3://voice-cloning-zero-shot/50381567-ff7b-46d2-bfdc-a9584a85e08d/original/manifest.json",
67
  "turnPrefix": "Host 1:",
68
  "turnPrefix2": "Host 2:",
69
  'prompt': None,
 
42
  model_name="gemini-1.5-flash-002",
43
  generation_config=generation_config,
44
  system_instruction = "Generate a conversation between two women flirtatiously complimenting the uploaded image in between 100 to 150 words. Please abide by these guidelines. \
45
+ 1. Begin conversation turns with the prefix 'Host: 1' and 'Host: 2'. For example, Host 1: Aren't they cute? Host 2: I'm feeling faint someone call a doctor? Host 3: Me too, maybe a whole ambulance! \
46
+ 2. Use humor, irony, and sarcasm to compliment and entertain the person depicted in the image \
47
  3. Your output should be a well-written text suitable for reading aloud. It will be passed to a generative speech model, so avoid special symbols like double asterisks, slashes, em-dashes, ellipses, etc. Also avoid output that isn't dialogue. \
48
  4. Conversation turns should be concise and on topic.",
49
  )
 
63
  payload = {
64
  "model": "PlayDialog",
65
  "voice": "s3://voice-cloning-zero-shot/adb83b67-8d75-48ff-ad4d-a0840d231ef1/original/manifest.json",
66
+ "voice2": "s3://voice-cloning-zero-shot/831bd330-85c6-4333-b2b4-10c476ea3491/original/manifest.json",
67
  "turnPrefix": "Host 1:",
68
  "turnPrefix2": "Host 2:",
69
  'prompt': None,