Skip to content

Commit

Permalink
Fix errors in text-to-pokemon example (#963)
Browse files Browse the repository at this point in the history
- Pin huggingface_hub dependency to an older version
- Add on:keyup for a11y warning
- Remove unused css
  • Loading branch information
op authored Nov 8, 2024
1 parent 5360ca5 commit 6001e94
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions 06_gpu_and_ml/text-to-pokemon/text_to_pokemon/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def null_safety(images, **kwargs):
"colorgram.py",
"diffusers~=0.11.1",
"ftfy",
"huggingface_hub~=0.21.1",
"torch",
"transformers",
"scipy",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
margin-right: 0.5em;
}
.callout p {
margin: 0;
}
.callout {
display: inline-flex;
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
export let highlighted;
</script>

<li class="autocomplete-items" class:autocomplete-active={highlighted} on:click>
<li class="autocomplete-items" class:autocomplete-active={highlighted} on:click on:keyup>
{@html itemLabel}
</li>

Expand Down
1 change: 0 additions & 1 deletion 06_gpu_and_ml/text-to-pokemon/text_to_pokemon/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ def fastapi_app():
@app.function(
image=inpaint.cv_image,
volumes={config.CACHE_DIR: volume},
interactive=False,
)
def inpaint_new_pokemon_name(card_image: bytes, prompt: str) -> bytes:
"""
Expand Down

0 comments on commit 6001e94

Please sign in to comment.