Skip to content

Commit

Permalink
test: Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Dec 3, 2024
1 parent 3786800 commit ce5225a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Install dependencies
run: pip install mkdocs-material

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
Expand All @@ -44,7 +41,11 @@ jobs:
run: dotnet run --project src/helpers/GenerateDocs/GenerateDocs.csproj .

- name: Build with MkDocs
run: mkdocs build -d ./_site
run: |
python -m venv myenv
source myenv/bin/activate
pip install mkdocs-material
mkdocs build -d ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,15 @@ public async Task CreatePredictionForFluxPro()
using var api = GetAuthorizedApi();

var response = await api.ModelsPredictionsCreateAsync(
input: new PredictionRequestInput
input: new Dictionary<string, object>
{
AdditionalProperties = new Dictionary<string, object>
{
["seed"] = Random.Shared.Next(0, 1000000),
["steps"] = 25,
["prompt"] = "a female, european, young adult, fit body, wavy acid orange hair, wearing open swimsuit, sea in the background.",
["guidance"] = 3.5,
["interval"] = 3,
["aspect_ratio"] = "16:9",
["safety_tolerance"] = 5,
},
["seed"] = Random.Shared.Next(0, 1000000),
["steps"] = 25,
["prompt"] = "a female, european, young adult, fit body, wavy acid orange hair, wearing open swimsuit, sea in the background.",
["guidance"] = 3.5,
["interval"] = 3,
["aspect_ratio"] = "16:9",
["safety_tolerance"] = 5,
},
modelOwner: "black-forest-labs",
modelName: "flux-pro",
Expand All @@ -31,8 +28,9 @@ public async Task CreatePredictionForFluxPro()

var endResponse = await response.WaitUntilSuccessfulAsync(api);

Console.WriteLine($@"Seed: {endResponse.Input?.Seed}.
Image available at:\n{endResponse.Output}");
Console.WriteLine($"Seed: {endResponse.Input?.Seed}.");
Console.WriteLine("Image available at:");
Console.WriteLine(endResponse.Output);

//// ![output](https://raw.githubusercontent.com/tryAGI/Replicate/dd1e5c2cbebc53e9b343f1372e5a660159e79ef3/assets/output.webp)
}
Expand Down

0 comments on commit ce5225a

Please sign in to comment.