Spaces:
Runtime error
Runtime error
hoollyzhang
commited on
Commit
·
49a48eb
1
Parent(s):
95fb4b1
feat: 默认打印
Browse files
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
|
| 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:
|