mrbeliever commited on
Commit
5180af7
·
verified ·
1 Parent(s): b500c44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import json
5
 
6
  # Set the Nebius API key
7
  API_KEY = os.environ.get("NEBIUS_API_KEY")
8
- API_URL = "https://api.studio.nebius.ai/v1/chat/completions"
9
 
10
  # Streamlit app configuration
11
  st.set_page_config(page_title="Image to Prompt Converter", layout="centered", page_icon="🖼️")
@@ -61,7 +61,7 @@ if uploaded_file is not None:
61
  "content": """You are an image to prompt converter. Your work is to observe each and every detail of the image and craft a detailed prompt under 75 words in this format: [image content/subject, description of action, state, and mood], [art form, style], [artist/photographer reference if needed], [additional settings such as camera and lens settings, lighting, colors, effects, texture, background, rendering]."""
62
  }
63
  ],
64
- "temperature": 0
65
  }
66
 
67
  # Call the Nebius API
 
5
 
6
  # Set the Nebius API key
7
  API_KEY = os.environ.get("NEBIUS_API_KEY")
8
+ API_URL = "https://api.studio.nebius.ai/v1/"
9
 
10
  # Streamlit app configuration
11
  st.set_page_config(page_title="Image to Prompt Converter", layout="centered", page_icon="🖼️")
 
61
  "content": """You are an image to prompt converter. Your work is to observe each and every detail of the image and craft a detailed prompt under 75 words in this format: [image content/subject, description of action, state, and mood], [art form, style], [artist/photographer reference if needed], [additional settings such as camera and lens settings, lighting, colors, effects, texture, background, rendering]."""
62
  }
63
  ],
64
+ "temperature": 1
65
  }
66
 
67
  # Call the Nebius API