Alibrown commited on
Commit
9d0c975
·
verified ·
1 Parent(s): c20e16c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -10
app.py CHANGED
@@ -94,22 +94,28 @@ def process_file(uploaded_file):
94
  with st.sidebar:
95
  api_key = st.text_input("Google AI API Key", type="password")
96
 
97
- # Modell-Liste bereinigt und Vision hervorgehoben
98
  model_list = [
99
- "gemini-1.5-flash",
100
- "gemini-1.5-pro",
101
- "gemini-1.5-pro-vision-latest", # Vision-Modell für Bilder
102
- "gemini-1.0-pro-vision-latest",
103
- "gemini-2.0-flash",
104
- "gemini-2.0-flash-lite",
105
- "gemini-2.0-pro-exp-02-05",
 
 
 
 
106
  ]
 
107
  model = st.selectbox("Model", model_list)
108
- st.caption("❗ Für Bildanalyse **(Vision)**-Modell wählen.")
 
 
109
 
110
  temperature = st.slider("Temperature", 0.0, 1.0, 0.7)
111
  max_tokens = st.slider("Max Tokens", 1, 100000, 1000)
112
-
113
  # Datei-Upload-Kontrolle
114
  uploaded_file = st.file_uploader("Upload File (Image/Text/PDF/ZIP)",
115
  type=["jpg", "jpeg", "png", "txt", "pdf", "zip",
 
94
  with st.sidebar:
95
  api_key = st.text_input("Google AI API Key", type="password")
96
 
97
+ # Modell-Liste bereinigt und auf die neuesten 2.5-Modelle fokussiert
98
  model_list = [
99
+ # --- Aktuelle Flaggschiffe (Standard & Pro) ---
100
+ "gemini-2.5-flash", # Standard, schnell, multimodal (Vision-fähig)
101
+ "gemini-2.5-pro", # Flagship, bestes Reasoning, multimodal (Vision-fähig)
102
+
103
+ # --- Vorherige Generation (als Fallback/Alternative) ---
104
+ "gemini-1.5-flash",
105
+ "gemini-1.5-pro",
106
+
107
+ # --- Legacy-Modelle (Text-only oder ältere Endpunkte) ---
108
+ "gemini-2.0-flash",
109
+ "gemini-1.0-pro", # Älterer stabiler Endpunkt
110
  ]
111
+
112
  model = st.selectbox("Model", model_list)
113
+
114
+ # Wichtiger Hinweis: 2.5er Modelle sind standardmäßig Vision-fähig
115
+ st.caption("❗ Alle **2.5er** Modelle sind **Vision-fähig** (Bilder, Dateien).")
116
 
117
  temperature = st.slider("Temperature", 0.0, 1.0, 0.7)
118
  max_tokens = st.slider("Max Tokens", 1, 100000, 1000)
 
119
  # Datei-Upload-Kontrolle
120
  uploaded_file = st.file_uploader("Upload File (Image/Text/PDF/ZIP)",
121
  type=["jpg", "jpeg", "png", "txt", "pdf", "zip",