hoollyzhang commited on
Commit
49a48eb
·
1 Parent(s): 95fb4b1

feat: 默认打印

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,8 +35,8 @@ button_pressed = st.button('Run code interpreter', use_container_width=True)
35
 
36
  # This will display the images only when the button is pressed
37
  if button_pressed and input_text != "":
38
- # Call the get_images function directly without asyncio.run
39
- output = get_images(input_text, files=uploaded_files_list)
40
 
41
  # Display output and images
42
  if output:
 
35
 
36
  # This will display the images only when the button is pressed
37
  if button_pressed and input_text != "":
38
+ # Call the get_images function using asyncio.run to handle the async behavior
39
+ output = asyncio.run(get_images(input_text, files=uploaded_files_list))
40
 
41
  # Display output and images
42
  if output: