Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
import sqlite3
- Page 1
Need help with Lem-in Project
Programming
5 Hours Ago
by Oven
… link. And here is my code and output: package main
import
( "fmt" "io/ioutil" "log"…
Re: Need help with Lem-in Project
Programming
4 Hours Ago
by rproffitt
This assignment would get a failing grade if you used GPT or found code. Toss all that out and write it yourself.
Re: Need help with Lem-in Project
Programming
1 Hour Ago
by Oven
Sadly, like i said GPT is not working anymore. My team coded this one. And AI & Ready code is acceptable. But it has to simple because we must understand the code. I found the working code but its 800 rows. So no we cant use it either. Even if anybody can explain the algorithm, that would help a lot too. Its like onion, we are thinking we …
Generate Stunning AI Images for Free Using Diffusion Models
Programming
Computer Science
4 Days Ago
by usmanmalik57
… sets it up for GPU acceleration. ``` from diffusers
import
DiffusionPipeline
import
torch pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl… below creates our base model and refiner. ``` from diffusers
import
DiffusionPipeline
import
torch # load both base & refiner base = DiffusionPipeline…
Retrieval Augmented Generation with Hugging Face Models in LangChain
Programming
Computer Science
3 Weeks Ago
by usmanmalik57
…
import
FAISS from langchain.chains.combine_documents
import
create_stuff_documents_chain from langchain.chains
import
create_retrieval_chain from langchain_core.prompts
import
ChatPromptTemplate from sentence_transformers
import
SentenceTransformer from transformers
import
BitsAndBytesConfig
import
…
Question Answering with YouTube Videos Using RAG in LangChain
Programming
Computer Science
4 Weeks Ago
by usmanmalik57
….document_loaders
import
YoutubeLoader from langchain_openai
import
ChatOpenAI from langchain_core.prompts
import
ChatPromptTemplate from langchain_core.output_parsers
import
StrOutputParser from langchain.text_splitter
import
RecursiveCharacterTextSplitter from langchain_openai
import
OpenAIEmbeddings…
Summarizing YouTube Video Transcriptions Using Distil Whisper and LLM
Programming
Computer Science
2 Weeks Ago
by usmanmalik57
…
import
torch from transformers
import
AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline from transformers
import
AutoModelForCausalLM, AutoTokenizer, logging from datasets
import
load_dataset from pytube
import
YouTube from transformers
import
…=torch.bfloat16 ) ``` Next, we will
import
the Mistral-7B model and its tokenizer from…
Re: Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
2 Weeks Ago
by aishamushtaq
very helpful
Re: Extract Tabular Data from PDF Images using Hugging Face Table Transformer
Programming
Computer Science
1 Week Ago
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 …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 Weeks Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 Weeks Ago
by vortex_1
In my opinion, implementing a feature in a bouncing balls simulation where a new ball is created when two balls collide can add an interesting and dynamic element to the simulation. This feature can introduce a sense of complexity and unpredictability, making the simulation more engaging and challenging for users. It could also provide an …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks Ago
by jprog1000
Great reply, vortex! Agree with all your points.
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks Ago
by aishamushtaq
Hi, Its helpful for me. I got my answer.
Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
1 Month Ago
by usmanmalik57
The advent of large language models (LLM) has replaced complex scripts with natural language for automating various tasks. You can now use LLM to interact with your databases using natural language, which makes life easier for people who do not have sufficient SQL knowledge. In this article, you will learn how to retrieve information from SQL …
Extract Tabular Data from PDF Images using Hugging Face Table Transformer
Programming
Computer Science
2 Months Ago
by usmanmalik57
…. ``` from transformers
import
AutoImageProcessor, TableTransformerForObjectDetection
import
torch from PIL
import
Image, ImageDraw, ImageFont
import
matplotlib.pyplot as plt
import
csv
import
numpy as np
import
pandas as…
Fine Tuning Google Gemma Model for Text Classification in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
… application. ```
import
os
import
transformers
import
torch from google.colab
import
userdata from datasets
import
load_dataset from trl
import
SFTTrainer from peft
import
LoraConfig from transformers
import
AutoTokenizer…
Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace
Programming
Computer Science
2 Months Ago
by usmanmalik57
….question_answering
import
load_qa_chain from sentence_transformers
import
SentenceTransformer from langchain.vectorstores
import
FAISS from transformers
import
AutoTokenizer, AutoModelForCausalLM from transformers
import
BitsAndBytesConfig, GemmaTokenizer from transformers
import
AutoTokenizer…
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
… langchain_openai
import
OpenAIEmbeddings from langchain_community.vectorstores
import
FAISS from langchain.chains.combine_documents
import
create_stuff_documents_chain from langchain.chains
import
create_retrieval_chain from langchain_core.documents
import
Document
import
os…
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
….chains
import
create_retrieval_chain from langchain_core.documents
import
Document from langchain.chains
import
create_history_aware_retriever from langchain_core.prompts
import
MessagesPlaceholder from langchain_core.messages
import
HumanMessage, AIMessage
import
os…
Claude 3 Opus Vs. Google Gemini Vs. GPT-4 for Zero-Shot Text Classification
Programming
Computer Science
1 Month Ago
by usmanmalik57
… required libraries. ```
import
os
import
pandas as pd from sklearn.model_selection
import
train_test_split from sklearn.metrics
import
accuracy_score
import
anthropic from openai
import
OpenAI
import
vertexai from…
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Month Ago
by jprog1000
…){ return this.getBounds().intersects(b.getBounds()); } }
import
javax.swing.JFrame; public class Frame{ public static …ActionListener;
import
java.awt.event.ActionEvent;
import
javax.swing.JPanel;
import
javax.swing.Timer;
import
java.awt.Graphics;
import
java.…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Month Ago
by toneewa
….event.ActionListener;
import
java.awt.event.ActionEvent;
import
javax.swing.JPanel;
import
javax.swing.Timer;
import
java.awt.Graphics;
import
java.awt.Color;
import
java.util…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Month Ago
by toneewa
….event.ActionListener;
import
java.awt.event.ActionEvent;
import
javax.swing.JPanel;
import
javax.swing.Timer;
import
java.awt.Graphics;
import
java.awt.Color;
import
java.util…
How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
1 Month Ago
by Hanginium65
… Python. from keystoneauth1
import
session from keystoneauth1.identity
import
v3 from swiftclient.client
import
Connection from swiftclient.client
import
ClientException
import
gzip
import
tarfile # Create a…
7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM
Programming
Computer Science
1 Month Ago
by usmanmalik57
…imports the required libraries. ``` from transformers
import
AutoModelForCausalLM, AutoTokenizer, logging from transformers
import
BitsAndBytesConfig
import
torch ``` ## Importing and Configuring the …quot;nf4", bnb_4bit_compute_dtype=torch.bfloat16 ) ``` Next, we
import
the `Mistral-7B-Instruct-v0.1` model, a variant …
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
1 Month Ago
by Salem
… the file, and just gives you bytes. >>>
import
gzip >>> gz = gzip.open('foo.tar.gz…
How Do I address ERROR: access violation writing 0x0000000000005140,
Programming
Web Development
2 Months Ago
by A_957
… highly appreciated: Chatbox.py file: from flask
import
Flask, render_template, request, jsonify
import
logging from gpt4all
import
GPT4All app = Flask(name) Load the…
i don´t understand this syntax error when using OpenCV
Programming
Databases
2 Months Ago
by Audun
… character in identifier >>> This is the code:
import
cv2 # OpenCV for image processing image = cv2.imread(“C:\Users…
Re: i don´t understand this syntax error when using OpenCV
Programming
Databases
1 Month Ago
by Audun
… cv - tot.py", line 1, in <module>
import
cv2 # OpenCV for image processing ModuleNotFoundError: No module named 'cv2…
A module that comes with Python, doesn´t register?
Programming
Web Development
1 Month Ago
by Audun
… cv - tot.py", line 1, in <module>
import
cv2 # OpenCV for image processing ModuleNotFoundError: No module named 'cv2…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC