Spaces:
Runtime error
Runtime error
Commit
•
9986a64
1
Parent(s):
b99ba25
Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ def bot_streaming(message, history):
|
|
77 |
user = DEFAULT_IMAGE_TOKEN + '\n' + user
|
78 |
conv.append_message(conv.roles[0], user)
|
79 |
conv.append_message(conv.roles[1], assistant)
|
80 |
-
conv.append_message(conv.roles[0],
|
81 |
conv.append_message(conv.roles[1], None)
|
82 |
prompt = conv.get_prompt()
|
83 |
|
@@ -138,6 +138,7 @@ with gr.Blocks(fill_height=True, ) as demo:
|
|
138 |
textbox=chat_input,
|
139 |
chatbot=chatbot,
|
140 |
)
|
|
|
141 |
|
142 |
|
143 |
if __name__ == "__main__":
|
|
|
77 |
user = DEFAULT_IMAGE_TOKEN + '\n' + user
|
78 |
conv.append_message(conv.roles[0], user)
|
79 |
conv.append_message(conv.roles[1], assistant)
|
80 |
+
conv.append_message(conv.roles[0], message['text'])
|
81 |
conv.append_message(conv.roles[1], None)
|
82 |
prompt = conv.get_prompt()
|
83 |
|
|
|
138 |
textbox=chat_input,
|
139 |
chatbot=chatbot,
|
140 |
)
|
141 |
+
gr.Image(label="Upload an image to start")
|
142 |
|
143 |
|
144 |
if __name__ == "__main__":
|