55,787
questions
0
votes
0
answers
4
views
I need a way to stream a live video from my pc to an android device with python
So I have created a GUI using TKinter which automatically updates when specific stuff is detected on the pc screen. I need a way to transfer this updating GUI to an android device, but it must be an ...
-1
votes
1
answer
15
views
Google GenerativeAI unable to load video files
I was building a small Flask app with HTML templates where a user could upload a video and I would use an LLM to describe the video.
I receive the file URL through an HTML form, which I then save to a ...
0
votes
0
answers
8
views
Error playing an audio stream using Expo AV in React Native
Using the Expo-AV library in React Native, I have trouble reading an audio stream from a flask server.
The problem only occurs in iOS (AVPlayer) sometimes but not always, no problem at all with ...
1
vote
0
answers
11
views
Flask swagger UI is not created
I don't know, what i do wrong, but this is my code. I'm trying to generate swagger documentation for the API, but when I'm running app, I receive result like in the picture.What I am missing here ? ...
-3
votes
0
answers
31
views
Website download a file with ".download" type in Python Flask [closed]
I wrote some code on Flask Python that downloading file from a root folder.
There's code:
@app.route('/files/<id>')
def download_file(id):
with open("files.json", "r", ...
0
votes
0
answers
6
views
Superset with docker - cannot login and login error
I wanted to try Apache Superset so I followed official docs for docker compose: I cloned the repo (step #1) and lunched with step 2 option #1 (i.e. via docker compose up).
Containers build taked some ...
0
votes
0
answers
26
views
My portfolio form doesnt validate on submit
I made a portfolio form to accept a users portfolio with his image and all other details.
When i submit the form it always goes to unsuccessful and nothing is submitted
How can i solve this?
Im new to ...
0
votes
1
answer
18
views
How to handle Slack trigger_id expiration for opening modals after a delay?
I'm working on a Slack app that opens modals in response to user actions using the views.open API. According to the Slack documentation, the trigger_id used to open modals is valid for only a few ...
0
votes
0
answers
12
views
502 Bad gateway with Flask on browserStack android
Successfully set up a local flask app mockserver but getting success 200 with one request but 502 with another.
200 when making a mobile requesting using webview
@app.route('/_one_request', methods=['...
1
vote
1
answer
34
views
autoreload python without master in uwsgi + flask
I have a Flask server, and for several reasons I need to set master = false in my uwsgi configuration. But due to this, I'm not able to auto reload on file changes anymore.
This is my uwsgi ini
[uwsgi]...
1
vote
0
answers
20
views
AttributeError: Can't get attribute 'TextPreprocessor', when deploying Flask app on Render
The problem is I have a flask app, which predict spam or ham text, by taking input from user.
I have two 'joblib' models with pipelines for text preprocessing and prediction (with tensorflow)
This is ...
-1
votes
0
answers
28
views
Flask webserver getting client's ip [closed]
i have this function which returns the client's ip and runs when a client gets into my flask server.
# get client ip
def get_client_ip():
forwarded_for = request.headers.get('X-Forwarded-For')
...
-1
votes
1
answer
31
views
SQLite3 DB to front end in flask just creates empty tags for each row [duplicate]
I've read the docs and looked at 2 different tutorials all do it the same way but my front end renders with empty tags but it creates a tag for the expect items in the database.
The desired behaviour ...
1
vote
1
answer
28
views
Flask Security Permissions of Roles
Flask Security offers a role system, a user can be assigned one or more roles. Similar to the login with @login_requiered, there is a @roles_required('Admin').
In Flask Security there are also ...
1
vote
0
answers
35
views
Telegram bot doesn't respond to commands
The Telegram bot does not respond to commands. According to the logs, the webhook is installed normally, the bot is launched. But it completely ignores any messages in the bot, logs nothing. Can you ...