Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pngwn committed Apr 18, 2024
1 parent bae6851 commit d330c3e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"trailingComma": "none",
"printWidth": 80,
"plugins": ["prettier-plugin-svelte"]
}
}
7 changes: 3 additions & 4 deletions frontend/shared/Image.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import ClearImage from "./ClearImage.svelte";
import { Upload } from "@gradio/upload";
import { DownloadLink } from "@gradio/wasm/svelte";
import { DownloadLink } from "@gradio/wasm/svelte";
import { type FileData, normalise_file } from "@gradio/client";
export let value: [FileData | null, FileData | null];
Expand All @@ -19,8 +19,7 @@
export let root: string;
export let position: number;
export let upload_count: number = 2;
export let layer_images = true;
export let show_download_button = true;
export let show_download_button = true;
let value_: [FileData | null, FileData | null] = value || [null, null];
Expand Down
4 changes: 2 additions & 2 deletions frontend/shared/InteractiveImage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<script lang="ts">
import type { Gradio, SelectData, ShareData } from "@gradio/utils";
import Image from "./Image.svelte";
import { normalise_file } from "@gradio/client";
import { Block } from "@gradio/atoms";
Expand All @@ -29,7 +31,6 @@
export let root: string;
export let position: number;
export let upload_count: number = 2;
export let layer_images = true;
export let gradio: Gradio<{
change: never;
Expand Down Expand Up @@ -94,7 +95,6 @@
{label}
{show_label}
{upload_count}
{layer_images}
>
<UploadText i18n={gradio.i18n} type="image" />
</Image>
Expand Down

0 comments on commit d330c3e

Please sign in to comment.