ziyadsuper2017 commited on
Commit
7141ef7
·
1 Parent(s): 221a628

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -253,11 +253,21 @@ if run_button or user_text or user_image:
253
  image_path = cache_pil_image(image)
254
  chatbot.append(((image_path,), None))
255
 
256
- # Call the bot function with parameters and chatbot history
257
  bot_response = bot(
258
  google_key=google_key,
259
  files=None,
260
- temperature
 
 
 
 
 
 
 
 
 
 
261
  # Display the user input and the model response
262
  if user_text:
263
  st.markdown(f"**User:** {user_text}")
 
253
  image_path = cache_pil_image(image)
254
  chatbot.append(((image_path,), None))
255
 
256
+ # Call the bot function with parameters and chatbot history
257
  bot_response = bot(
258
  google_key=google_key,
259
  files=None,
260
+ temperature=temperature,
261
+ max_output_tokens=max_output_tokens,
262
+ stop_sequences=stop_sequences,
263
+ top_k=top_k,
264
+ top_p=top_p,
265
+ chatbot=chatbot
266
+ )
267
+
268
+ # Get the response text from the bot response generator
269
+ response_text = next(bot_response)
270
+
271
  # Display the user input and the model response
272
  if user_text:
273
  st.markdown(f"**User:** {user_text}")