lorocksUMD commited on
Commit
2fb0735
1 Parent(s): 2533bec

Update script.py

Browse files
Files changed (1) hide show
  1. script.py +3 -7
script.py CHANGED
@@ -27,19 +27,15 @@ import re
27
 
28
  # Line 138 uncomment the cuda() to use GPUs
29
 
30
- device = "cpu"
31
- # device = "auto"
32
 
33
  prompt = "What are the things I should be cautious about when I visit here?"
34
  image_file = "Great-Room-4.jpg"
35
 
36
- model_path = "liuhaotian/llava-v1.6-mistral-7b"
37
 
38
 
39
- """
40
- For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
41
- """
42
- client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
43
 
44
  # Functions for inference
45
  def image_parser(args):
 
27
 
28
  # Line 138 uncomment the cuda() to use GPUs
29
 
30
+ # device = "cpu"
31
+ device = "auto"
32
 
33
  prompt = "What are the things I should be cautious about when I visit here?"
34
  image_file = "Great-Room-4.jpg"
35
 
36
+ model_path = "liuhaotian/llava-v1.6-mistral-7b" # <path to model weights>
37
 
38
 
 
 
 
 
39
 
40
  # Functions for inference
41
  def image_parser(args):