mgokg commited on
Commit
39fa858
·
verified ·
1 Parent(s): 70844b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 gemini_chat(prompt, history):
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=gemini_chat,
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"