forked from failfa-st/fail4
-
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.
- Loading branch information
1 parent
32a1ca4
commit 2f65818
Showing
28 changed files
with
1,643 additions
and
745 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Sync to Hugging Face Spaces | ||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
env: | ||
HF_USERNAME: failfast | ||
HF_SPACE_NAME: 2D-GameCreator-GPT | ||
|
||
jobs: | ||
sync-to-space: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
- name: Push to Space | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
run: git push --force https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$HF_SPACE_NAME main |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
} | ||
output: "standalone", | ||
reactStrictMode: true, | ||
}; | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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,89 @@ | ||
import { | ||
Card, | ||
CardContent, | ||
CardHeader, | ||
CardMedia, | ||
Grid, | ||
Link, | ||
List, | ||
ListItem, | ||
ListItemIcon, | ||
ListItemText, | ||
Table, | ||
TableBody, | ||
TableCell, | ||
TableRow, | ||
Typography, | ||
} from "@mui/material"; | ||
import { DividerBox, SectionBox } from "./base/boxes"; | ||
import { DynamicFeed, PrecisionManufacturing } from "@mui/icons-material"; | ||
|
||
export default function Examples() { | ||
return ( | ||
<> | ||
<DividerBox /> | ||
|
||
<SectionBox> | ||
<Typography component="h3" variant="h2"> | ||
Examples | ||
</Typography> | ||
</SectionBox> | ||
|
||
<Grid container> | ||
<Grid item sm={4}> | ||
<Card> | ||
<CardHeader title="Space Invaders Extreme"></CardHeader> | ||
<CardMedia | ||
component="img" | ||
image="img/space_invaders_extreme.jpg" | ||
height="256" | ||
/> | ||
<CardContent> | ||
<Table> | ||
<TableBody> | ||
<TableRow> | ||
<TableCell variant="head">Play</TableCell> | ||
<TableCell> | ||
{" "} | ||
<Link | ||
href="https://codesandbox.io/s/space-invaders-extreme-7xhp4v" | ||
target="_blank" | ||
rel="noopener" | ||
> | ||
via Codesandbox | ||
</Link> | ||
</TableCell> | ||
</TableRow> | ||
|
||
<TableRow> | ||
<TableCell variant="head">Model</TableCell> | ||
<TableCell>GPT 3.5 Turbo</TableCell> | ||
</TableRow> | ||
<TableRow> | ||
<TableCell variant="head">Iterations</TableCell> | ||
<TableCell>20</TableCell> | ||
</TableRow> | ||
<TableRow> | ||
<TableCell variant="head">Controls</TableCell> | ||
<TableCell> | ||
Keyboard: Movement (Arrow Left, Arrow right), Shooting | ||
(Space), Restart (R) | ||
</TableCell> | ||
</TableRow> | ||
<TableRow> | ||
<TableCell variant="head">Hints</TableCell> | ||
<TableCell> | ||
The bigger the window, the easier it gets to play | ||
</TableCell> | ||
</TableRow> | ||
</TableBody> | ||
</Table> | ||
</CardContent> | ||
</Card> | ||
</Grid> | ||
</Grid> | ||
|
||
<DividerBox /> | ||
</> | ||
); | ||
} |
Oops, something went wrong.