Spaces:
Runtime error
Runtime error
Commit
·
6447954
1
Parent(s):
0387967
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ for message in chat_history: # This loops through each message in the chat histo
|
|
40 |
user_input = st.text_input("") # This creates a text input widget for the user
|
41 |
|
42 |
# File uploader for images
|
43 |
-
uploaded_file = st.file_uploader("Upload an image (optional)"
|
44 |
|
45 |
if user_input: # This checks if the user has entered some text
|
46 |
chat_history.append({"role": role, "parts": [{"text": user_input}]}) # This appends the user input to the chat history
|
|
|
40 |
user_input = st.text_input("") # This creates a text input widget for the user
|
41 |
|
42 |
# File uploader for images
|
43 |
+
uploaded_file = st.file_uploader("Upload an image (optional)") # This creates a file uploader widget for the user to upload an image file
|
44 |
|
45 |
if user_input: # This checks if the user has entered some text
|
46 |
chat_history.append({"role": role, "parts": [{"text": user_input}]}) # This appends the user input to the chat history
|