Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from google.genai import types
|
|
| 6 |
# Client initialisieren
|
| 7 |
client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY"))
|
| 8 |
|
| 9 |
-
def
|
| 10 |
# Vorbereitung der Inhalte
|
| 11 |
contents = [
|
| 12 |
types.Content(
|
|
@@ -33,7 +33,7 @@ def gemini_chat(prompt, history):
|
|
| 33 |
|
| 34 |
# Gradio Interface Setup
|
| 35 |
demo = gr.ChatInterface(
|
| 36 |
-
fn=
|
| 37 |
title="Gemini Flash mit Google Search",
|
| 38 |
description="Gib eine Frage ein, und Gemini nutzt die Google Suche für aktuelle Antworten.",
|
| 39 |
type="messages"
|
|
|
|
| 6 |
# Client initialisieren
|
| 7 |
client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY"))
|
| 8 |
|
| 9 |
+
def generate(prompt, history):
|
| 10 |
# Vorbereitung der Inhalte
|
| 11 |
contents = [
|
| 12 |
types.Content(
|
|
|
|
| 33 |
|
| 34 |
# Gradio Interface Setup
|
| 35 |
demo = gr.ChatInterface(
|
| 36 |
+
fn=generate,
|
| 37 |
title="Gemini Flash mit Google Search",
|
| 38 |
description="Gib eine Frage ein, und Gemini nutzt die Google Suche für aktuelle Antworten.",
|
| 39 |
type="messages"
|