2,205,648 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Score of 1
0 answers
33 views
How to avoid cyclic dependency when using Flask as Viewer part of MVC setup?
I made a little multiplication table game with a multiplayer mode. For the future I have started to decouple the logic and the output, so I can easily (easier) add new math tasks like addition, ...
Score of -2
0 answers
64 views
What are some techniques from the OpenAI SDK and Pandas library to accomplish what I want to do for my SKU coding system program? [closed]
I've been working on an SKU coding system, and my plan is to incorporate the OpenAI SDK and Pandas library to my python application.
Here's how the program will flow, ideally:
1. It will first get the ...
- reputation score 1
Score of -1
0 answers
58 views
Errno 1112816 on Python 3 - unseen error code [closed]
I am running a pretty standard Flask app on a standard Ubuntu VM.
I am getting an OSError code that I could not find referenced anywhere online before:
File "/home/user/llmGuess/app.py", ...
Score of 0
1 answer
63 views
How to Insert datas from a dataframe into a database?
I have a DAG with three tasks in my project. The three tasks call three function which are in differents files. I'm using the ELT/ETL process. Everything seems fine until the injection of the datas. I ...
- reputation score 119
Score of 0
1 answer
52 views
Flask Ratelimit issue
I'm trying to rate limit an API request on my website. However, when I used flask Limiter, it just ignored it.
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address
This ...
- reputation score 1
Best practices
0
votes
0
replies
59
views
Is it safe to reuse the same PyTorch loss module across multiple environments in a single training iteration?
I'm training a model where each training iteration processes two independent mini-batches (call them environment A and environment B). Both environments contribute to the same optimization step. I'm ...
Score of 0
0 answers
80 views
scipy import from module fails, sometimes (path-dependent)
I open a live Python repo (https://petrkryslucsd.github.io/pystran.live/lab/index.html?path=Welcome.ipynb). I click through to the folder pystran/tutorials. I create a notebook (Pyodide) with a single ...
- reputation score 11
Score of -4
0 answers
94 views
Why is my /voice endpoint translating non-English input twice?
I have a FastAPI backend with three endpoints: /chat, /callback, and /voice. The /voice endpoint transcribes audio using voice_to_text(), detects the language, translates non-English input to English ...
- reputation score 9
Score of -1
0 answers
68 views
Show all values from all tables in postgresql database with fastapi [closed]
Currently I'm working with FastAPI and SQL connections. My goal is to show all values in the database with tables when I click the FastAPI localhost URL.
This is my existing code; it returns an error. ...
Score of -3
0 answers
71 views
Anyway to iterate over specific class variables whilst retaining pointer in Python [closed]
I'm going to preface this by saying I am using python 2.7, I do not currently have anyway of updating this on this dev env.
Example:
Class Example():
def __init__(self):
self.a = 1
...
- reputation score 1
Advice
0
votes
0
replies
56
views
Spent months building optimizers/CNNs from scratch in NumPy/CuPy — not sure what to build next, would appreciate direction
I have been teaching myself ML by building everything from raw math no heavy libraries like PyTorch, just NumPy/CuPy and derivatives worked out by hand. Wanted to share where I've landed and get some ...
- reputation score 1
Score of 0
1 answer
41 views
How to access a different project in Google Big Query using Python?
I have been granted access to view a collaborator's Google Big Query project data from the cloud console. I can view the datasets, and the tables, and run SQL commands and view the data in the Google ...
- reputation score 3845
Score of -1
0 answers
53 views
How to make soft/graceful reload after collectstatic command
I have made some changes in my build files locally. Then I send via scp command to my remote server. Invoke there collectstatic command and here is the problem. Django html template refers to the old {...
- reputation score 41
Tooling
0
votes
7
replies
119
views
Why am i getting a File not found error when reading a text file in python?
I am new to python and i am trying to read a text file using ( ) the open function,and i believe it is in the same folder as my python script. However i run the program,i get no file found error. I ...
- reputation score 1
Score of -8
0 answers
99 views
Is this fine enough for Computer Vision? [closed]
I've been working on a small collection of computer vision scripts and I wanted to check whether the overall scope and depth are appropriate for the task I've been given, or whether I should be adding,...
- reputation score 1