alfredplpl commited on
Commit
806cebb
·
verified ·
1 Parent(s): 676edb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -2,7 +2,7 @@ from transformers import AutoConfig, AutoModel
2
  import gradio as gr
3
  import spaces
4
 
5
- model_path = "turing-motors/Heron-NVILA-Lite-33B"
6
 
7
  # or directly from_pretrained
8
  model = AutoModel.from_pretrained(model_path, trust_remote_code=True, device_map="auto")
@@ -20,13 +20,13 @@ generation_config = GenerationConfig(**generation_config)
20
 
21
  DESCRIPTION = '''
22
  <div>
23
- <h1 style="text-align: center;">非公式Heron-NVILA-Lite</h1>
24
- <p>Heron-NVILA-Liteの非公式デモだよ。 <a href="https://huggingface.co/turing-motors/Heron-NVILA-Lite-33B"><b>turing-motors/Heron-NVILA-Lite-33B</b></a>.</p>
25
  </div>
26
  '''
27
 
28
  @spaces.GPU()
29
- def infer(image,prompt):
30
  response = model.generate_content(
31
  [image, "画像を可能な限り詳細に説明してください。"],
32
  generation_config=generation_config
 
2
  import gradio as gr
3
  import spaces
4
 
5
+ model_path = "turing-motors/Heron-NVILA-Lite-15B"
6
 
7
  # or directly from_pretrained
8
  model = AutoModel.from_pretrained(model_path, trust_remote_code=True, device_map="auto")
 
20
 
21
  DESCRIPTION = '''
22
  <div>
23
+ <h1 style="text-align: center;">非公式Heron-NVILA-Lite-15B</h1>
24
+ <p>Heron-NVILA-Lite-15Bの非公式デモだよ。 <a href="https://huggingface.co/turing-motors/Heron-NVILA-Lite-15B"><b>turing-motors/Heron-NVILA-Lite-15B</b></a>.</p>
25
  </div>
26
  '''
27
 
28
  @spaces.GPU()
29
+ def infer(image):
30
  response = model.generate_content(
31
  [image, "画像を可能な限り詳細に説明してください。"],
32
  generation_config=generation_config