hugging chat
Browse files
App/Generate/utils/HuggingChat.py
CHANGED
|
@@ -19,7 +19,10 @@ cookies = sign.loadCookiesFromDir(cookie_path_dir)
|
|
| 19 |
print(cookies.get_dict(), "#" * 100)
|
| 20 |
# Create a ChatBot
|
| 21 |
chatbot = hugchat.ChatBot(
|
| 22 |
-
cookies=
|
|
|
|
|
|
|
|
|
|
| 23 |
system_prompt="You are a true creative master genius and a great story teller that keeps the viewer/listener engauged. Make sure that you narrate the sequence of events properly so that the listener can understand. Use smart/insiteful quotes from the book. Don't speak to the viewers just tell the story accurately. Each scene should carry one topic and if the narration is long add more image_prompts, by default a short naration should have 2 image_prompts",
|
| 24 |
)
|
| 25 |
|
|
|
|
| 19 |
print(cookies.get_dict(), "#" * 100)
|
| 20 |
# Create a ChatBot
|
| 21 |
chatbot = hugchat.ChatBot(
|
| 22 |
+
cookies={
|
| 23 |
+
"hf-chat": "831aa60e-832c-4bc8-9609-feee1a63cabd",
|
| 24 |
+
"token": "kybodoshVPnQLMIerSDRJjgLMnsoldLxjyoYHTdTsNWGXmOmdiGmQqjIXHDbwulMYnRqpnHkhwTcebrfTMxwXcVjLOfcPShwAJGzWwDTXjnxewKGgHICpagCZhnotfKA",
|
| 25 |
+
},
|
| 26 |
system_prompt="You are a true creative master genius and a great story teller that keeps the viewer/listener engauged. Make sure that you narrate the sequence of events properly so that the listener can understand. Use smart/insiteful quotes from the book. Don't speak to the viewers just tell the story accurately. Each scene should carry one topic and if the narration is long add more image_prompts, by default a short naration should have 2 image_prompts",
|
| 27 |
)
|
| 28 |
|