How to deploy a python chatbot [closed] - python

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I am a beginner of chatbot, I have developed python code to do pattern match from an intents.json file. code works fine and can answer questions.
But how to embed this python file and intents.json file into a site as a chatbot widget? Appreciate if any good tutorial for end-to-end chatbot project. Thank you.

Browsers do not run Python, so you would need to write an API. You can use Flask to do so fairly easily. Flask's tutorial is excellent.
An alternative would be to write a Javascript version that can run in the browser. This avoids the Flask server, but then people could easily jack your chatbot.

Related

Web scraping with VBA vs Python [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I am trying to automate web scraping by Excel. It's just accessing the website and download the data as an excel file.
I have three options; any recommendation or suggestions?
Use VBA and manipulate browser
Use VBA and http requests.
Call Python script from VBA
I prefer Python so much. However,I need to make it environment-independent and useable for anyone else who's not familiar with codes at all, so I would like to avoid extra installation and setup.
Any advise will help. Thanks!
I'd say go with whatever you feel the most comfortable with.
What I personally do when I need to distribute my Python applications is to create a standalone using Pyinstaller. You should be able to create standalones for several environments.

Why can't I add my app in the setting.py before making it? (Django) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I've been following tutorials and messing around with Django lately.
I'm trying to revise what I've learned and There's a question I would like to ask:
Can someone explain to me why I can't go to my setting.py and add the name of my app in the installed_apps before actually making it? I'm a bit confused about the concept.
Why is the other way around allowed in the terminal flawlessly and not in this way?
Thanks in advance!
when you run python manage.py runserver django tries to load all the installed apps mentioned in the list.
So the app has to be created before adding it to the installed apps, so that django will find the app and load it.

How do I convert a jupyter notebook project into a standalone web application? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am new to machine learning & python. I found a predictive machine learning program on jupyter notebook. Is it possible to convert that jupyter project into a standalone web application? Do I need any libraries for it ? I want to demonstrate the chart & prediction formally. Suggestions?
You need to use django or pyramid or flask and use the same codes in a reorganized way.
Yeah it is possible. If you want to convert it to web application, you should use Flask, Django, etc. Flask is easy and light one, try it.

How to query database after the server has started? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I am trying to Query my database after the server has started, all of the tutorials on youtube write the code inside the server and run it. I don't want this, on the official tutorial they execute the commands inside a shell. How do I do the same?
the Django docs that you mentioned here making queries is using interactive Python shell configured for your Django project, to access that you can run the following command
python manage.py shell
from there you can access all those commands

Running python on mac [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have to learn python for a school project and I need a way I can code it and run it on my computer. Is there a way I can run python on safari via an MAMP web server. I have looked everywhere and can't grasp a grip on how I can run it as a page on my server. Thank you for your time. and thanks for the dislikes
You can use http://www.pythonanywhere.com if you don't want to install Python on your computer for any reason.
An amazing programing website is c9.io. It has access to nearly all the mainstream programming languages. Just check it out and you can make an account for free.
Go there here: c9.io

Categories