Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haotian-liu committed Feb 3, 2024
1 parent f04e1cc commit ad79a5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion llava/serve/gradio_web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ def build_demo(embed_mode, cur_dir=None, concurrency_count=10):
value="Default",
label="Preprocess for non-square image", visible=False)

cur_dir = os.path.dirname(os.path.abspath(__file__))
if cur_dir is None:
cur_dir = os.path.dirname(os.path.abspath(__file__))
gr.Examples(examples=[
[f"{cur_dir}/examples/extreme_ironing.jpg", "What is unusual about this image?"],
[f"{cur_dir}/examples/waterview.jpg", "What are the things I should be cautious about when I visit here?"],
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "llava"
version = "1.2.1.post2"
version = "1.2.1.post4"
description = "Towards GPT-4 like large language and visual assistant."
readme = "README.md"
requires-python = ">=3.8"
Expand All @@ -16,7 +16,7 @@ dependencies = [
"torch==2.0.1", "torchvision==0.15.2",
"transformers==4.36.2", "tokenizers==0.15.0", "sentencepiece==0.1.99", "shortuuid",
"accelerate==0.21.0", "peft==0.4.0", "bitsandbytes==0.41.0",
"pydantic<2,>=1", "markdown2[all]", "numpy", "scikit-learn==1.2.2",
"pydantic", "markdown2[all]", "numpy", "scikit-learn==1.2.2",
"gradio==4.16.0", "gradio_client==0.8.1",
"requests", "httpx==0.24.0", "uvicorn", "fastapi",
"einops==0.6.1", "einops-exts==0.0.4", "timm==0.6.13",
Expand Down

0 comments on commit ad79a5d

Please sign in to comment.