Docfile commited on
Commit
52921a6
·
verified ·
1 Parent(s): 9d4a077

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -63,7 +63,7 @@ def stream_response(container, response: Generator) -> None:
63
  content = chunk.candidates[0].content
64
 
65
  if hasattr(content, 'parts'):
66
- for part in parts:
67
  has_thought = hasattr(part, 'thought') and part.thought
68
  text = getattr(part, 'text', '')
69
 
@@ -98,13 +98,13 @@ def stream_response(container, response: Generator) -> None:
98
 
99
  def main():
100
  st.set_page_config(
101
- page_title="Assistant M-0",
102
  page_icon="💭",
103
  layout="wide",
104
  initial_sidebar_state="collapsed"
105
  )
106
 
107
- st.title("Assistant M-0")
108
 
109
  # Récupération de la clé API
110
  try:
 
63
  content = chunk.candidates[0].content
64
 
65
  if hasattr(content, 'parts'):
66
+ for part in content.parts: # Correction ici: content.parts au lieu de parts
67
  has_thought = hasattr(part, 'thought') and part.thought
68
  text = getattr(part, 'text', '')
69
 
 
98
 
99
  def main():
100
  st.set_page_config(
101
+ page_title="Assistant Gemini",
102
  page_icon="💭",
103
  layout="wide",
104
  initial_sidebar_state="collapsed"
105
  )
106
 
107
+ st.title("Assistant Gemini")
108
 
109
  # Récupération de la clé API
110
  try: