ysharma HF staff commited on
Commit
7f52231
1 Parent(s): 4a3acd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -70,7 +70,6 @@ def stream_gemini_response(user_message: str, messages: list) -> Iterator[list]:
70
  metadata={"title": "⚙️ Thinking: *The thoughts produced by the model are experimental"}
71
  )
72
  yield messages
73
- time.sleep(0.05)
74
 
75
  # Start response
76
  response_buffer = parts[1].text
@@ -106,8 +105,7 @@ def stream_gemini_response(user_message: str, messages: list) -> Iterator[list]:
106
  )
107
 
108
  yield messages
109
- time.sleep(0.05)
110
-
111
  print(f"\n=== Final Response ===\n{response_buffer}")
112
 
113
  except Exception as e:
 
70
  metadata={"title": "⚙️ Thinking: *The thoughts produced by the model are experimental"}
71
  )
72
  yield messages
 
73
 
74
  # Start response
75
  response_buffer = parts[1].text
 
105
  )
106
 
107
  yield messages
108
+
 
109
  print(f"\n=== Final Response ===\n{response_buffer}")
110
 
111
  except Exception as e: