syzdekbr commited on
Commit
0093fa9
·
verified ·
1 Parent(s): a8f171b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -13,7 +13,7 @@ import pandas as pd
13
  from openai import OpenAI
14
  from PIL import Image, ImageOps
15
 
16
- DEFAULT_MODEL = os.getenv("VISION_MODEL", "Qwen/Qwen2.5-VL-7B-Instruct")
17
  DEFAULT_PROMPT = (
18
  "Write concise, useful alt text for this image. Describe only meaningful visual "
19
  "content and function. Do not begin with 'image of' or 'picture of'. Do not guess "
@@ -201,7 +201,8 @@ def process_table(
201
  if binary_column not in df.columns:
202
  raise gr.Error("Select the column containing the image data.")
203
 
204
- client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=token)
 
205
  results = []
206
  total = len(df)
207
 
 
13
  from openai import OpenAI
14
  from PIL import Image, ImageOps
15
 
16
+ DEFAULT_MODEL = os.getenv("VISION_MODEL", "qwen/qwen3.6-27b")
17
  DEFAULT_PROMPT = (
18
  "Write concise, useful alt text for this image. Describe only meaningful visual "
19
  "content and function. Do not begin with 'image of' or 'picture of'. Do not guess "
 
201
  if binary_column not in df.columns:
202
  raise gr.Error("Select the column containing the image data.")
203
 
204
+ # client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=token)
205
+ client = OpenAI(base_url="https://api.groq.com/openai/v1", api_key=os.environ["GROQ_API_KEY"])
206
  results = []
207
  total = len(df)
208