Update app.py
Browse files
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
|
| 98 |
model_list = [
|
| 99 |
-
|
| 100 |
-
"gemini-
|
| 101 |
-
"gemini-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
"gemini-
|
| 105 |
-
"gemini-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
]
|
|
|
|
| 107 |
model = st.selectbox("Model", model_list)
|
| 108 |
-
|
|
|
|
|
|
|
| 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",
|