Re: Using Natural Language to Query SQL Databases with Python LangChain Module Programming Computer Science by aishamushtaq very helpful Re: Printing multiple integers EASY SOLUTION Programming Software Development by Bunker A straightforward solution to printing multiple integers is to use a loop. For example, in Python, you could use a "for" loop to iterate through a list of integers and print each one. This method is simple and effective. Using Natural Language to Query SQL Databases with Python LangChain Module Programming Computer Science by usmanmalik57 … the most sales are: 1. Yael Peled with 9798 sales 2. Judy Lew with 7852 sales 3. Sara Davis with 7812… least sales are: 1. Product AOZBW with 95 units sold. 2. Product KSZOI with 122 units sold. 3. Product EVFFA with… number of orders are: 1. Customer LCOUJ with 31 orders 2. Customer THHDP with 30 orders 3. Customer IRRVL with 28… Question Answering with YouTube Videos Using RAG in LangChain Programming Computer Science by usmanmalik57 … Ark (Arc de Triomphe) for a view of the city. 2. Having a picnic near the Eiffel Tower with food from… Middle Aged Needing Career Advice Community Center Geeks' Lounge by BigPaw I'm in my 50's and my IT credentials have lapsed. Pre-cancer I was a consultant in software licensing, but my background is more dominantly hardware and developing. I am self-taught in a couple of old irrelevant-to-today languages, and hold a certification for VB6. Hardware I'm certified A+ and some Toshiba certifications. For software licensing I … Re: Which programming language is best Ludo game development? Programming Game Development by kishanrg When it comes to developing a Ludo game, the choice of programming language largely depends on your familiarity with the language and the platforms you intend to target. However, some commonly used languages for game development, including Ludo games, are C++, C#, Java, JavaScript, and Python. Ultimately, the "best" programming … Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Hanginium65 Good day, Salem. My apologies for taking so long to reply to your suggestion. I refactored my code to read the contents of the tar.bz2 file and then pass them as a file-like object to the 'put_object' and also to change the content type for the file transfer to "application/octet-stream". The first was sent through to object storage … Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Salem I don't understand why you need to extract all the files from the compressed `tar.bz2` just to upload to a backup. Also, line 69 is now meaningless having just posted only a snippet of the code. Before the error, what was the last `logger.info` message? Re: DaniWeb Auto Answer A.I. feature Community Center Meta DaniWeb by toneewa An RTX 30 or 40 series card with 8GB of VRAM. ~$299. There is no support with Wine a user has reported. There was a link to a [python api](https://github.com/rpehkone/Chat-With-RTX-python-api). That was just an example and a thought, but not limited there. There's creative solutions. Having only users with an RTX card can use the feature, … Re: Read file properties of video files in C++ Programming Software Development by rproffitt When you asked for runtime you triggered a memory from long ago where MP3 runtimes were at times wildly inaccurate. Just like the man who was turned into a newt in Monty Python who said "I got better", such are better now but I still read complaints it's not exact. So here's the thing, you may want that runtime but it's not always … Re: DaniWeb Auto Answer A.I. feature Community Center Meta DaniWeb by Dani Pardon my cluelessness here. A $300 video card can efficiently perform complex AI tasks against DaniWeb’s entire database in real time? Missed the link to the Python API. Re: Middle Aged Needing Career Advice Community Center Geeks' Lounge by Dani Perhaps a career as a [software QA engineer](https://in.indeed.com/career-advice/finding-a-job/what-is-qa-engineer) will be interesting to you? Re: Middle Aged Needing Career Advice Community Center Geeks' Lounge by Dani Oh ... and congratulations on your cancer remission. :) Re: Which programming language is best Ludo game development? Programming Game Development by polles i would choose JavaScript Why am getting different syntax errors when running a Python script Programming Software Development by Tom_45 … = (year, name, rank) names.append(item) #print(item) name = match[2] item = (year, name, rank) names.append(item) #print(item)` On… a subscript out of range error on the name = match[2], which is the female name in a tuple with (popularity… 7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM Programming Computer Science by usmanmalik57 … the following parameters: 1. the input text. 2. the number of response tokens (maximum characters in…://static.daniweb.com/attachments/4/dde6bac6ebb29a1e02dcb63ac3f000c1.png) ## 2. Text Summarization with Mistral 7b Let's now…Output:** ``` 1. "Scoops by the Sea" 2. "Beach Bites" 3. "Surfside Scoops"… Re: Using ChatGPT to Interact with Third-Party Applications in Python Programming Computer Science by catherine_11 Integrating ChatGPT with third-party applications in Python involves utilizing [OpenAI's API](http://www.google.com). Begin by obtaining API credentials, then craft Python scripts to send requests and process responses. Adhere to OpenAI's documentation for optimal integration, ensuring secure and efficient interaction with the ChatGPT model. ABC for Github-programs and Python Programming Software Development by Audun Hi I want to make use of GitHub-programs, and so I downloaded a bunch of Python-tools. When I run this command in "Python 3.12", which looks like CMD to me, I get a syntax error. "To create a virtual environment, Python supplies a built in venv module which provides the basic functionality needed for the virtual … Re: ABC for Github-programs and Python Programming Software Development by Reverend Jim I have an apps folder on D: where I keep all my portable/homegrown software. Let's say I want to create a virtual enviromnent in `D:\apps\MyVirtual`. To do this I open a command shell and do D:\>cd apps D:\apps>python -m venv MyVirtual If I install any packages in this session, they will be installed in the virtual python. … Re: ABC for Github-programs and Python Programming Software Development by Reverend Jim I have developed a number of GUI applications in python. I found that the wxpython package was far better than tkinter. wxpython is based on wxwidgets which is essentially windows controls. Because wxwidgets are compiled for each major system, controls rendered by wxpython look like the native controls for whatever system is hosting. Fine Tuning Google Gemma Model for Text Classification in Python Programming Computer Science by usmanmalik57 …Dataset.from_pandas(dataset) final_dataset = dataset.train_test_split(test_size=0.2) ``` Next, we define a formatting function that …=transformers.TrainingArguments( per_device_train_batch_size=1, gradient_accumulation_steps=4, warmup_steps=2, max_steps=100, learning_rate=2e-4, fp16=True,… A module that comes with Python, doesn´t register? Programming Web Development by Audun Hi Title: A module that comes with Python, doesn´t register. This is the error message: %Run 'open cv - tot.py' Traceback (most recent call last): File "C:\Users\Audun Nilsen\open cv - tot.py", line 1, in <module> import cv2 # OpenCV for image processing ModuleNotFoundError: No module named 'cv2' I double-checked to … Re: A module that comes with Python, doesn´t register? Programming Web Development by Reverend Jim I tried installing python 3.12 and had the same problem. I typically wait a bit before installing the latest and greatest because I have found it can take a while before packages are upgraded to be compatible (usually wxpython). I was able to install the individual packages under python 3.10. I know that the "next to latest and greatest" … Re: Why am getting different syntax errors when running a Python script Programming Software Development by Tom_45 After I posted this question I noticed that I was missing the raw string indicator and the capture group enclosing parenthesis on the findall, which explains the subscripting error. So, hold off on the answers for now. I'm still having other issues with multiple file runs, though. Re: Why am getting different syntax errors when running a Python script Programming Software Development by Tom_45 Finished the assignment and was able to work out the bugs I was encountering. In addition to the issues I mentioned in my last reply, I had several instances of not indenting properly so that statements like exit() were not executing because their indention made them part of an if statement. How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Hanginium65 I wrote a Python script that included the python-swiftclient module to connect to the OpenStack Object Storage and upload some files to the OpenStack Object Storage container It works great if I upload a file that ends with the extension .gz however, I’m getting an error regarding the ‘TarFile’ object having no attribute ‘read’ after running my … Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Salem … This is file 1 $ cat foo_2.txt This is file 2 This is file two This is file too # Three tar….tar.gz: gzip compressed data, from Unix, original size modulo 2^32 10240 foo.tar: POSIX tar archive (GNU) # tar understands… Re: How Do I address ERROR: access violation writing 0x0000000000005140, Programming Web Development by rproffitt Python shouldn't create such an error. Reference https://www.reddit.com/r/learnpython/comments/kv83hc/error_code_exception_access_violation_writing_0x0/ I can't duplicate your issue but if this was mine I'd place a logging command in my python script at each step so I could nail down which line of code threw the error. Tutorial on that at … Re: Installing programs from Github Programming Software Development by rproffitt > Python is an interpreted language, which means the source code of a Python program is converted into bytecode that is then executed by the Python virtual machine. As such the .exe would be the Python virtual machine and not your Python apps. PDF Image Table Extractor Web App with Google Gemini Pro and Streamlit Programming Computer Science by usmanmalik57 In my previous article, I explained [how to convert PDF image to CSV using Multimodal Google Gemini Pro](https://www.daniweb.com/programming/computer-science/tutorials/541365/converting-pdf-image-to-csv-using-multimodal-google-gemini-pro). To do so, I wrote a Python script that passes text command to [Google Gemino Pro](https://blog.google/…