-
Notifications
You must be signed in to change notification settings - Fork 986
wiki module:added images in case of Disambiguation #265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Any Updates? |
modules/src/wiki.py
Outdated
@@ -40,7 +39,7 @@ def process(input, entities): | |||
} | |||
} | |||
buttons.add_postback('Wikipedia Summary', payload) | |||
template.add_element(title=data.title, item_url=data.url, image_url=image_url, | |||
template.add_element(title=data.title, item_url=data.url, image_url=data.images[0], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The images
list might be empty. In that case, let's default to the current image_url.
@swapagarwal Please review sir |
Hey @aviral1701, I deployed this change to test it; but the output isn't that good. What do you think? |
@swapagarwal Ya result is not so good.May be we should stick with the wiki image only. |
Can we get the main wiki image using some other API? If not, let's drop this. |
@swapagarwal Hey, sorry for late response,was busy with my midterms. |
…senger pulling from the original repo
No description provided.