Generate Stunning AI Images for Free Using Diffusion Models Programming Computer Science by usmanmalik57 … DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True,… DiffusionPipeline.from_pretrained( "stabilityai/stable-diffusion-xl-refiner-1.0", text_encoder_2=base.text_encoder_2, vae=base.vae… Re: Using Natural Language to Query SQL Databases with Python LangChain Module Programming Computer Science by aishamushtaq very helpful Question Answering with YouTube Videos Using RAG in LangChain Programming Computer Science by usmanmalik57 …(docs)}") print("=====================================") print("Contents of video 1") print("=====================================") print(docs[0]) ``` **Output:** ![image1.png… top three things to do based on the context are: 1. Visiting the top of the Ark (Arc de Triomphe) for… Summarizing YouTube Video Transcriptions Using Distil Whisper and LLM Programming Computer Science by usmanmalik57 …) return decoded[0].split("[/INST]")[1].rstrip("</s>") ``` …']}" response = generate_response(input_text, 1000, 0.1) print(f"Total characters in summarized result:…['text']}" response = generate_response(input_text, 50, 0.1) print(response) ``` **Output:** ![image3](https://static.daniweb… 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: Which programming language is best Ludo game development? Programming Game Development by m2host I will choose Python or JavaScript 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. Re: Which programming language is best Ludo game development? Programming Game Development by polles i would choose JavaScript Re: Extract Tabular Data from PDF Images using Hugging Face Table Transformer Programming Computer Science by Harini sri Hi, Thank you so much for the above code. Its giving better results compared to other libraries. I have few questions. In some tables, I have common column name for three columns and further I have sub columns like below.... in these cases the tables are not getting extracted properly...Do you have any suggestions for handling such cases? Also … Why am getting different syntax errors when running a Python script Programming Software Development by Tom_45 … match in matches: #print(match) rank = match[0] name = match[1] item = (year, name, rank) names.append(item) #print(item) name… 7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM Programming Computer Science by usmanmalik57 …', or 'neutral: {review}" response = generate_response(input_text, 10, 0.1) print(response) ``` **Output:** ``` neutral ``` The above output shows that…gt; entity type: {input}" response = generate_response(input_text, 100, 0.1) print(response) ``` **Output:** ``` Ronaldo -> Person Portugal ->… Using Natural Language to Query SQL Databases with Python LangChain Module Programming Computer Science by usmanmalik57 … The top 10 employees who made the most sales are: 1. Yael Peled with 9798 sales 2. Judy Lew with 7852… ``` **Output:** ``` The 5 products with the least sales are: 1. Product AOZBW with 95 units sold. 2. Product KSZOI with… 10 customers with the most number of orders are: 1. Customer LCOUJ with 31 orders 2. Customer THHDP with… 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 …["train"], args=transformers.TrainingArguments( per_device_train_batch_size=1, gradient_accumulation_steps=4, warmup_steps=2, max_steps=100,… learning_rate=2e-4, fp16=True, logging_steps=1, output_dir="outputs", optim="paged_adamw_8bit&… A module that comes with Python, doesn´t register? Programming Web Development by Audun …;C:\Users\Audun Nilsen\open cv - tot.py", line 1, in <module> import cv2 # OpenCV for image processing… 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 … for demo purposes. $ cat foo_1.txt This is file 1 $ cat foo_2.txt This is file 2 This is file….gz foo.tar.bz2 foo.tar -rw-rw-r-- 1 sc sc 181 Mar 23 08:06 foo.tar.bz2… -rw-rw-r-- 1 sc sc 170 Mar 23 08:07 foo.tar.gz… -rw-rw-r-- 1 sc sc 10240 Mar 23 08:26 foo.tar The… 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. Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain Programming Computer Science by usmanmalik57 …` in this case), and the temperature value (between 0 and 1). A higher temperature value allows the model to be more… Chat-GPT Retrieval augmented generation (RAG) works in three steps. 1. Split and create embeddings for the documents containing the knowledge… Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace Programming Computer Science by usmanmalik57 …real-world knowledge. RAG works in the following four steps: 1. Store data containing external knowledge into a vector database. 2…("===================================") print(final_response.split("<end>")[1]) ``` **Output:** ![image2.png](https://static.daniweb.com/attachments/4/… How Do I address ERROR: access violation writing 0x0000000000005140, Programming Web Development by A_957 The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation exception that occurred within my application. This type of error apparently usually points to a problem where the code attempted to write to a protected … 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: How Do I address ERROR: access violation writing 0x0000000000005140, Programming Web Development by Dani I don't have any python experience, sadly, but I am super awesome at jQuery. Once you solve this server-side problem at hand, if you find yourself with the jQ side of things not working, please don't hesitate to post. Re: Installing programs from Github Programming Software Development by Reverend Jim Further... Python gets converted to byte code which is then cached in a sub-folder. As long as the source code and packages have not changed there is no need to reconvert so subsequent runs should start faster. Also, I strongly recommend that you look into wxpython as a much better alternative to tkinter. Wxpython is a wrapper for wxwidgets …