Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def visual_qna():
|
|
| 36 |
img = load_image()
|
| 37 |
if img:
|
| 38 |
if query := st.chat_input("Enter your message"):
|
| 39 |
-
response = model(question=query, image=img,
|
| 40 |
with st.chat_message("assistant"):
|
| 41 |
st.write(response)
|
| 42 |
else:
|
|
|
|
| 36 |
img = load_image()
|
| 37 |
if img:
|
| 38 |
if query := st.chat_input("Enter your message"):
|
| 39 |
+
response = model(question=query, image=img,max_new_tokens= 50)
|
| 40 |
with st.chat_message("assistant"):
|
| 41 |
st.write(response)
|
| 42 |
else:
|