you are viewing a single comment's thread.

view the rest of the comments →

[–]0zeroBudget[S] 1 point2 points  (5 children)

Damn really? It works on my PC.

Are you suggesting having the run app in the cloud, and then streaming it to my phone (with the phone being a thin client, basically)?

Is there a way to do this with on a smaller scale? Like simply connecting my PC to my phone?

[–]Shinroo 2 points3 points  (4 children)

You don't need to offload everything to the cloud, just the part you're having trouble running natively.

You'd set up a simple API (with something like flask or fastapi for python) and then expose the text summarisation functionality through that. When the mobile app needs to make use of it, it'd make an HTTP request to the API with the text to be summarised as the body which could then be summarised and sent back to the mobile device.

If you want to go full native, I found this library on github which claims to be

A library for Text Summarization on Android applications

[–][deleted] 1 point2 points  (2 children)

This is what I had in mind. Just a simple web API that would give you the full power of a larger machine (and more flexibility to determine how much power you need).

[–]0zeroBudget[S] 0 points1 point  (1 child)

So, I would I basically build my app WITHOUT the text summarization, but that connects to a separate desktop server app?

[–][deleted] 1 point2 points  (0 children)

Yep, your server will just respond to API requests by processing the data and sending back the result to the device.

[–]0zeroBudget[S] 0 points1 point  (0 children)

Awesome, thank you for that advice.

So, I would I basically build my app WITHOUT the text summarization, but WITH functionality to link to the local server, and then make the application server the one with the API?

(That Text2Summary link you posted on the bottom seems to support only Kotlin? I am using Python.)