Skip to content

Commit

Permalink
Update the app and add README
Browse files Browse the repository at this point in the history
  • Loading branch information
wyhong3103 committed Feb 19, 2024
1 parent 7f1a879 commit 5561a86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions frontend/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Your backend address
# If this is in localhost, you can use ipconfig to find your IPv4 address (in windows)
EXPO_PUBLIC_API_URL=http://192.168.0.175:3030
2 changes: 1 addition & 1 deletion frontend/app/components/PuzzleGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const PuzzleGrid : FC<PuzzleGridProps> = ({puzzle, mask, cb, disabled}) =
const rows = []
for(let i = 0; i < 9; i++){
rows.push(
<View style={$row}>
<View style={$row} key={i}>
{
puzzle[i].map(
(value: number, idx: number) => (
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/screens/ImportScreen/ImportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const ImportScreen: FC<ImportScreenProps> = ({navigation}) => {
type: "image/jpeg"
})

const res = await fetch('http://ec2-13-211-177-226.ap-southeast-2.compute.amazonaws.com:3030/inference', {
const res = await fetch(process.env.EXPO_PUBLIC_API_URL+'/inference', {
method: 'POST',
body: formData,
});
Expand Down

0 comments on commit 5561a86

Please sign in to comment.