Spaces:
Build error
Build error
Update app.py
Browse files496 unmodified lines497498499500501502503504505506507508509510511512496 unmodified lines#image = gr.Image(value=img_str)chatbot.append((user_question,img))#print(chatbot)if "send email to" in user_question:try:os.remove(image_path) # Clean up the temporary image fileexcept Exception as e:print(f"Error cleaning up image file: {e}")except Exception as e:print(f"Error loading image file: {e}")chatbot.append((user_question, "Chart generation failed. Please try again."))else:chatbot.append((user_question, "Chart generation failed. Please try again."))return gr.update(value=chatbot)496 unmodified lines497498499500501502503504505506507508509510511496 unmodified lines#image = gr.Image(value=img_str)chatbot.append((user_question,img))#print(chatbot)if "send email to" in user_question:try:os.remove(image_path) # Clean up the temporary image fileexcept Exception as e:print(f"Error cleaning up image file: {e}")except Exception as e:print(f"Error loading image file: {e}")chatbot.append((user_question, "Chart generation failed. Please try again."))return gr.update(value=chatbot)
app.py+3-4