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

Update app.py

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