Kvikontent commited on
Commit
a5e889e
·
verified ·
1 Parent(s): a39a739

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def chat(prompt):
14
 
15
  try:
16
  response = text_model.generate_content(prompt, stream=True)
17
- return to_markdown(chunk.text)
18
 
19
  except Exception as e:
20
  print(f"Error during generation: {e}")
 
14
 
15
  try:
16
  response = text_model.generate_content(prompt, stream=True)
17
+ return to_markdown(response.text)
18
 
19
  except Exception as e:
20
  print(f"Error during generation: {e}")