sflindrs commited on
Commit
5ee2847
·
verified ·
1 Parent(s): 37dfdda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,10 +50,10 @@ def chatbot(image, text, history):
50
  return history + [("Please upload an image first.", None)]
51
 
52
  response = process_image_and_text(image, text)
53
- pretty_response = pprint.pp(response)
54
 
55
  history.append({"role": "user", "content": text})
56
- history.append({"role": "assistant", "content": pretty_response})
57
  return history
58
 
59
  # Define the Gradio interface
 
50
  return history + [("Please upload an image first.", None)]
51
 
52
  response = process_image_and_text(image, text)
53
+ # pretty_response = pprint.pp(response)
54
 
55
  history.append({"role": "user", "content": text})
56
+ history.append({"role": "assistant", "content": response})
57
  return history
58
 
59
  # Define the Gradio interface