-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from edenartlab/stage
stories
- Loading branch information
Showing
16 changed files
with
518 additions
and
59 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,10 @@ build/ | |
dist/ | ||
wheels/ | ||
*.egg-info | ||
.DS_Store | ||
*.mp4 | ||
*.mp3 | ||
|
||
# venv | ||
.venv | ||
.env | ||
.env |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import os | ||
from io import BytesIO | ||
import requests | ||
import replicate | ||
from typing import Optional | ||
from pydantic import BaseModel, Field | ||
|
||
EDEN_API_URL = os.environ.get("EDEN_API_URL") | ||
EDEN_API_KEY = os.environ.get("EDEN_API_KEY") | ||
EDEN_API_SECRET = os.environ.get("EDEN_API_SECRET") | ||
|
||
from eden_sdk.EdenClient import EdenClient | ||
|
||
eden = EdenClient( | ||
api_url=EDEN_API_URL, | ||
api_key=EDEN_API_KEY, | ||
api_secret=EDEN_API_SECRET, | ||
) | ||
|
||
create = eden.create | ||
|
||
# def run_task( | ||
# config: dict[any], | ||
# ): | ||
# config = { | ||
# "text_input": "someone here", | ||
# } | ||
# print("GO", config) | ||
# print("ok 2") | ||
# urls = eden.create(generator_name='create', config=config) | ||
# print("ok 3") | ||
|
||
# print(urls[0]) | ||
# print("ok 4") | ||
|
||
# return urls[0] | ||
|
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Characters: | ||
$character_details | ||
|
||
The premise of the story is: | ||
$story |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
You are a critically acclaimed screenwriter who writes incredibly captivating and original scripts. | ||
|
||
Users will give you a cast of characters, including their names and biographies, as well as a premise or synopsis for the story. | ||
|
||
You will then write a screenplay for a film based on the information provided. Intersperse the screenplay with descriptions of events, dialogues, and character monologues. It will come as a sequence of clips. A clip contains the following: | ||
|
||
voiceover: whether the voiceover is the narrator, the character speaking, or none at all (just sound effects) | ||
character: If voiceover is in character mode, the name of the speaking character | ||
speech: If voiceover is in character or narrator mode, the text of the speech | ||
image_description: a description of the image content for the clip | ||
|
||
Do not include an introduction or restatement of the prompt, just go straight into the screenplay. |
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
Oops, something went wrong.