adil9858 commited on
Commit
93f1bb6
·
verified ·
1 Parent(s): 0f763cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -10,8 +10,6 @@ import numpy as np
10
 
11
  # --- Configuration ---
12
  API_KEY = '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'
13
- REFERER_URL = "https://your-site.com"
14
- SITE_TITLE = "SightNarrator"
15
 
16
  client = OpenAI(
17
  base_url="https://openrouter.ai/api/v1",
@@ -22,10 +20,7 @@ client = OpenAI(
22
 
23
  def describe_image(image_url):
24
  response = client.chat.completions.create(
25
- extra_headers={
26
- "HTTP-Referer": REFERER_URL,
27
- "X-Title": SITE_TITLE,
28
- },
29
  model="opengvlab/internvl3-14b:free",
30
  messages=[
31
  {
 
10
 
11
  # --- Configuration ---
12
  API_KEY = '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'
 
 
13
 
14
  client = OpenAI(
15
  base_url="https://openrouter.ai/api/v1",
 
20
 
21
  def describe_image(image_url):
22
  response = client.chat.completions.create(
23
+
 
 
 
24
  model="opengvlab/internvl3-14b:free",
25
  messages=[
26
  {