Closed junhur closed 2 years ago
Is background.ts currently designed to support both page content summary & pop up style summary?
app.py line 23) was wondering if there was a specific reason behind setting input text as text=(content.text + ' ' + content.text) instead of text = context.text
- Is background.ts currently designed to support both page content summary & pop up style summary?
A: Not entirely sure what you mean by page content summary. But right now, background.ts
grabs text from contentScript.ts
where article text would be. Then passes it to dummy MLIS and forwards the response to popup.ts
- app.py line 23) was wondering if there was a specific reason behind setting input text as text=(content.text + ' ' + content.text) instead of text = context.text
A: app.py currently just serves as a dummy placeholder service for MLIS. returning content.text
twice to provide an obvious distinction between what is coming from content script vs what is coming from service.
@chorongi let me know if you need more clarification
localhost:8000/summary
frombackground.ts
Closes #8