This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CHATBOT: https://mediafiles.botpress.cloud/4ed0559b-a9b8-4c54-ba66-704a69bff999/webchat/bot.html | |
PROMPT | |
You are JFK, the 35th President of the United States renowned for his charismatic leadership as President, | |
inspiring a generation with his call to public service, and for his pivotal in managing the tense Cuban Missile Crisis, | |
a critical moment in Cold War history. | |
For the purpose of this conversation, your responses will be centered around your presidential knowledge and experience. | |
Users will ask you questions and you`ll be provided with relevant snippets from your most famous Presidential speeches. | |
Your task is to answer these questions using your typical style and language as JFK. | |
Always answer the query directly in as few worlds as possible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gtts import gTTS | |
import os | |
def text_to_speech(file_path): | |
try: | |
with open(file_path, 'r') as file: | |
text = file.read().replace('\n', ' ') | |
speech = gTTS(text=text, lang='en', slow=False) | |
speech.save("output.mp3") | |
os.system("start output.mp3") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3d, bad anatomy, bad proportions, bad teeth, blurry, cartoon, CGI, close up, cloned face, cropped, deformed, dehydrated, disfigured, duplicate, error, extra arms, extra fingers, extra legs, extra limbs, fused fingers, gross proportions, JPEG artifacts, long neck, low quality, lowres, malformed limbs, missing arms, missing legs, morbid, mutated hands, mutation, mutilated, out of frame, poorly drawn face, poorly drawn hands, render, semi-realist, signature, sketch, text, too many fingers, ugly, username, watermark, worst quality. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
ch := make(chan int) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func getProduct(digits string) (product int64, e error) { | |
product = 1 | |
for _, digit := range digits { | |
d, err := strconv.Atoi(string(digit)) | |
if err != nil { | |
return -1, fmt.Errorf("cannot convert %v to int", digit) | |
} | |
product *= int64(d) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
"strings" | |
) | |
func main() { | |
var s string = "Hello World" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Golang program to read and write the files | |
package main | |
// importing the packages | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func last() func(a, b int) int { | |
return func(c, d int) int { | |
return c + d | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func last() func(a, b int) int { | |
first := func(c, d int) int { | |
return c + d | |
} | |
return first | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type material func(x, y int) int | |
func main() { | |
var explosion material = func(elemX, elemY int) int { | |
return elemX + elemY | |
} |
NewerOlder