<small id='kcjj1'></small><noframes id='kcjj1'>

<i id='kcjj1'><tr id='kcjj1'><dt id='kcjj1'><q id='kcjj1'><span id='kcjj1'><b id='kcjj1'><form id='kcjj1'><ins id='kcjj1'></ins><ul id='kcjj1'></ul><sub id='kcjj1'></sub></form><legend id='kcjj1'></legend><bdo id='kcjj1'><pre id='kcjj1'><center id='kcjj1'></center></pre></bdo></b><th id='kcjj1'></th></span></q></dt></tr></i><div id='kcjj1'><tfoot id='kcjj1'></tfoot><dl id='kcjj1'><fieldset id='kcjj1'></fieldset></dl></div>
  • <legend id='kcjj1'><style id='kcjj1'><dir id='kcjj1'><q id='kcjj1'></q></dir></style></legend>
    1. <tfoot id='kcjj1'></tfoot>
        <bdo id='kcjj1'></bdo><ul id='kcjj1'></ul>

        在服务器上托管 Python 并从 React Expo App 调用

        Host Python on server and call from React Expo App(在服务器上托管 Python 并从 React Expo App 调用)
        <tfoot id='vw1wa'></tfoot>

              <tbody id='vw1wa'></tbody>
            • <bdo id='vw1wa'></bdo><ul id='vw1wa'></ul>
              <i id='vw1wa'><tr id='vw1wa'><dt id='vw1wa'><q id='vw1wa'><span id='vw1wa'><b id='vw1wa'><form id='vw1wa'><ins id='vw1wa'></ins><ul id='vw1wa'></ul><sub id='vw1wa'></sub></form><legend id='vw1wa'></legend><bdo id='vw1wa'><pre id='vw1wa'><center id='vw1wa'></center></pre></bdo></b><th id='vw1wa'></th></span></q></dt></tr></i><div id='vw1wa'><tfoot id='vw1wa'></tfoot><dl id='vw1wa'><fieldset id='vw1wa'></fieldset></dl></div>
              • <legend id='vw1wa'><style id='vw1wa'><dir id='vw1wa'><q id='vw1wa'></q></dir></style></legend>

                <small id='vw1wa'></small><noframes id='vw1wa'>

                  本文介绍了在服务器上托管 Python 并从 React Expo App 调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在开发一个使用机器学习的应用,但最近遇到了问题.我发现 Expo 和 Python 并不能真正协同工作.

                  I am working on an app that uses machine learning, and recently run into a problem. I found out that Expo and Python do not really work together.

                  我认为解决方案是在服务器上托管和运行我的机器学习模型 (Python),然后从我的 JS Expo 应用程序发出请求,我认为与就在我的笔记本电脑上.

                  I thought that a solution would be to host and run my machine learning model (Python) on a server, and then make requests from my JS Expo app, and I thought this would also have the hidden bonus of faster processing compared to just on my laptop.

                  那么,人们能否首先确认这是否可行(从 JS Expo 应用程序调用在服务器上运行的 python 代码),如果可以,然后提供一些关于我可以在哪里托管的建议?

                  So, can people confirm whether firstly this is possible (to call python code running on a server, from a JS Expo app) and if so, then provide some recommendations as to where I can host this?

                  这是一个大学项目,所以我希望能找到免费或便宜的东西,谢谢.

                  This is for a university project, so I am hoping to find something either free or cheap, thanks.

                  推荐答案

                  我认为与仅在我的笔记本电脑上相比,这还有更快的处理速度.

                  I thought this would also have the hidden bonus of faster processing compared to just on my laptop.

                  如果您想免费这样做,那么任何云上的最低层实例都将具有 1 或 2 个内核以及 1-2 GB 的 RAM,它不会比您的本地设备更强大,也不会有任何硬件加速,但如果你打算在手机上运行它可能就足够了

                  If you want to do it for free then lowest tier instances on any cloud will have 1 or 2 cores plus 1-2 GB of RAM, it won't be stronger than your local device and it won't have any hardware acceleration, but if you planned to run that on your phone then it might be enough

                  那么,人们能否首先确认这是否可行(从 JS Expo 应用程序调用运行在服务器上的 python 代码)

                  So, can people confirm whether firstly this is possible (to call python code running on a server, from a JS Expo app)

                  简短的回答是,但是你提出这个问题的方式确实表明你不知道这种交流是如何进行的.你需要

                  Short answer yes, but The way you formulated this question does suggest that you don't know how this communication would work. You would need to

                  • 从 expo 应用程序向您服务器上的某个端点发送 http 请求
                  • 实现可以接受该请求的服务器代码,在您的情况下,最好在 python 中执行此操作(使用 django 或 flask 之类的东西)
                  • 在您的服务器代码中执行 tensorflow 代码
                  • 如果 tensorflow 代码执行速度很快,您可以在响应中发送结果,否则您需要第二个端点来检查结果

                  这是一个大学项目,所以我希望能找到免费或便宜的东西,谢谢.

                  This is for a university project, so I am hoping to find something either free or cheap, thanks.

                  对于本地开发,无论哪种方式,您都需要在本地托管它,对于大学项目,这应该足够了,但如果您想在公共服务器上拥有它,您可以获得免费套餐或几乎任何云服务上的一些起始积分,例如数字海洋为学生提供 100 美元的学分

                  for local development you will need to host it locally either way, for university project it should be enough, but if you want to have it on public server you can get free tier or some starting credits on almost any cloud service e.g. digital ocean gives 100$ credit for students


                  或者,您可以在 react-native 应用程序中使用 tensorflow,但不能在 python 中使用,https://blog.tensorflow.org/2020/02/tensorflowjs-for-react-native-is-here.html?m=1

                  这篇关于在服务器上托管 Python 并从 React Expo App 调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Gradient Button to background-color blinks on hover(悬停时背景颜色的渐变按钮闪烁)
                  How to make hovering over active button not use hover effect?(如何使悬停在活动按钮上不使用悬停效果?)
                  html javascript show image hover(html javascript 显示图像悬停)
                  How to get css hover values on click?(如何在点击时获得 css 悬停值?)
                  Change background image on link hover(更改链接悬停时的背景图像)
                  Highlight multiple items on hover#39;s condition(突出显示悬停条件下的多个项目)
                  <tfoot id='oYwv0'></tfoot>

                    • <bdo id='oYwv0'></bdo><ul id='oYwv0'></ul>

                    • <i id='oYwv0'><tr id='oYwv0'><dt id='oYwv0'><q id='oYwv0'><span id='oYwv0'><b id='oYwv0'><form id='oYwv0'><ins id='oYwv0'></ins><ul id='oYwv0'></ul><sub id='oYwv0'></sub></form><legend id='oYwv0'></legend><bdo id='oYwv0'><pre id='oYwv0'><center id='oYwv0'></center></pre></bdo></b><th id='oYwv0'></th></span></q></dt></tr></i><div id='oYwv0'><tfoot id='oYwv0'></tfoot><dl id='oYwv0'><fieldset id='oYwv0'></fieldset></dl></div>

                      <small id='oYwv0'></small><noframes id='oYwv0'>

                            <legend id='oYwv0'><style id='oYwv0'><dir id='oYwv0'><q id='oYwv0'></q></dir></style></legend>
                              <tbody id='oYwv0'></tbody>