Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,11 @@ def main():
|
|
| 34 |
if st.button("Submit"):
|
| 35 |
if question:
|
| 36 |
response = query_engine.query(question)
|
| 37 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
if __name__ == "__main__":
|
| 40 |
main()
|
|
|
|
| 34 |
if st.button("Submit"):
|
| 35 |
if question:
|
| 36 |
response = query_engine.query(question)
|
| 37 |
+
# Displaying the response
|
| 38 |
+
if response.startswith('http'):
|
| 39 |
+
st.image(response, use_column_width=True)
|
| 40 |
+
else:
|
| 41 |
+
st.markdown(f"**Response:** {response}")
|
| 42 |
|
| 43 |
if __name__ == "__main__":
|
| 44 |
main()
|