Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
os.path
- Page 1
RDLC reporting with parameters
Programming
Software Development
4 Days Ago
by shane1961
… = "Data_Reporting.JobsList.rdlc" *Data_Reporting is the stored report
path
in my.settings* Dim param_allocatedjobs As New ReportParameter("allocated_jobs…
Tabular Data Classification with Hugging Face Meta Tree Transformer
Programming
Computer Science
2 Days Ago
by usmanmalik57
… of the data. ``` # Load the dataset file_path = '/content/BankNote_Authentication.csv' #
Path
to the dataset df = pd.read_csv(file_path) # Display the first…
Image Analysis Using OpenAI GPT-4o Model
Programming
Computer Science
2 Weeks Ago
by usmanmalik57
…run code in this article. ``` import
os
import base64 from IPython.display import display,…the `encode_image64()` method that accepts an image
path
and converts the image into base64 format. OpenAI… base64_image = encode_image64(image_path) client = OpenAI( api_key =
os
.environ.get('OPENAI_API_KEY'), ) ``` Next, we will define …
OpenAI GPT-4o vs Meta Llama 3 for Zero Shot Text Classifiation
Programming
Computer Science
3 Weeks Ago
by usmanmalik57
… OpenAI( # This is the default and can be omitted api_key =
os
.environ.get('OPENAI_API_KEY'), ) def find_sentiment_gpt(tweet): content = ""…rest of the process remains the same. ``` client = Groq( api_key=
os
.environ.get("GROQ_API_KEY"), ) def find_sentiment_llama3(tweet): content = …
‘Advanced AI should be treated similar to Weapons of Mass Destruction’
Community Center
2 Weeks Ago
by Johannes C.
… footnote in the annals of sentient beings. In contrast, the
path
to extinction may arrive with astonishing swiftness. I very much… from the planet altogether and head towards the stars… Another
path
is **temporal tampering** by a superintelligence which, in its vast…
Comparing Fine-tuned and Default GPT-3.5 Turbo for Text Classification
Programming
Computer Science
1 Week Ago
by usmanmalik57
… role, so be careful while specifying this value. ``` # JSON file
path
json_file_path = '/home/mani/Datasets/airline_sentiments.json' # Function to create the… first. Create an OpenAI client object and pass the file
path
to the `files.create()` method, as shown in the following…
Re: Windows licence
Hardware and Software
Microsoft Windows
4 Weeks Ago
by marythodge4
…. Possible Issues with License Edition Edition Mismatch: If the original
OS
was Windows Home edition and you are trying to install… UEFI firmware settings. Install the Matching Edition: If the original
OS
was Windows Home edition, try installing the Home edition. During…
Re: How do I set up a working environment on orange pi from ssh?
Hardware and Software
1 Week Ago
by toneewa
Using Win32Disk Imager to run the
OS
[Raspbian](https://raspians.com/how-to-run-raspbian-on-an-…
Re: AlmaLinux vs Rocky Linux for a new server
Hardware and Software
Linux and Unix
1 Week Ago
by Best tattoo ser
Choose AlmaLinux if you want a community-driven RHEL fork with strong commercial backing. Opt for Rocky Linux if you prefer a community-led project directly managed by the original CentOS founder. Both are solid choices for a new server, offering similar features and support.
Re: ‘Advanced AI should be treated similar to Weapons of Mass Destruction’
Community Center
1 Week Ago
by Reverend Jim
Based on the proliferation of AI generated content, and the age-old rule of garbage in, garbage out, what will be the result of AI models being trained on ever increasing amounts of content generated by other AI platforms? Will we get into a negative feedback loop where the output will become so polluted with bad input that it will be effectively …
Re: ‘Advanced AI should be treated similar to Weapons of Mass Destruction’
Community Center
1 Week Ago
by jwenting
Even worse: the junk being deliberately fed to AIs is already at the stage where the results are useless BUT those results are blindly believed by many people BECAUSE they're generated by AI and therefore supposedly automatically correct! Think Google's disastrous launch of their image generator which would under no condition generate Caucasian …
Re: This Halloween: Are You Brave Enough to Face Roko's Basilisk?
Community Center
2 Weeks Ago
by soly_1
Although superintelligence and God are both considered "mighty entities," the devil is in the details. A superintelligence merely needs code; unlike supernatural beings, it doesn't require faith. The proof isn't found in antiquated literature, but rather in the quick developments in AI and machine learning. Though, in my opinion, the …
Re: This Halloween: Are You Brave Enough to Face Roko's Basilisk?
Community Center
2 Weeks Ago
by olivia_24
It also assumes that said AI will be vindictive (like the gods). If the theory is correct, why would a sentient AI need to be vengeful once it has been created? In any case, there is still no evidence that machine consciousness it attainable. At least one engineer involved in the development of OpenAI has made claims about consciousness, but those …
Re: Things I hate about TV shows
Community Center
Geeks' Lounge
2 Weeks Ago
by Reverend Jim
Why is it that when people in shows light a fire (like when setting a vehicle on fire) with a lighter, they always throw the lighter into the puddle of gasoline? Do they not realize that a lighter is reusable? On a related note, researchers tried hundreds of times to ignite a puddle of gasoline by throwing a burning cigarette into it. They were …
Re: Things I hate about TV shows
Community Center
Geeks' Lounge
2 Weeks Ago
by Dani
> Do they not realize that a lighter is reusable? They do it to show how they live life on the edge by proving to the world (and the television audience) they won't have any more use for a lighter. > They were successful exactly zero times. Researchers, schmearchers. But has Myth Busters had a go of it?
Re: Things I hate about TV shows
Community Center
Geeks' Lounge
2 Weeks Ago
by Reverend Jim
Actually, I think they did with the same results. Supposedly the temperature of the cigarette is below the flash point of gasoline. Did anyone else suffer through the final season of Star Trek: Discovery?
Re: Windows licence
Hardware and Software
Microsoft Windows
4 Weeks Ago
by tarael1
The above is all very valuable information. One aspect that wasn't mentioned for those of you who do hardware repairs, in the case where you must replace the motherboard you will no longer have a valid key unless you have written down or saved to backup the key for the damaged motherboard. In which case you will need to purchase another valid key. …
Need help with Lem-in Project
Programming
1 Month Ago
by Oven
… run . <file_name>")
os
.Exit(1) } textfile :=
os
.Args[1] farmInfo, err := parseInput(… { // If not, make the ant follow the shortest
path
useShortestPath(&ants[i], farmInfo.tunnels, tunnelUsage) } } …
Re: Need help with Lem-in Project
Programming
1 Month Ago
by toneewa
…{ visited[adjRoom] = true queue = append(queue, adjRoom)
path
[adjRoom] = room } } } shortestPath := []string{} for…, nil } func main() { if len(
os
.Args) != 2 { fmt.Println("Usage…
AlmaLinux vs Rocky Linux for a new server
Hardware and Software
Linux and Unix
1 Month Ago
by jkon
… you have build in a server in top of an
OS
a tons of others systems you CAN'T just change… the
OS
. You just migrate to a new server with whatever that… (CloudLinux) property nor can they can influence the AlmaLinux future
path
(I hope). But if CloudLinux bankrupts , or just stops supporting…
Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
2 Months Ago
by usmanmalik57
… following script imports the GPT-4 LLM via LangChain. ``` openai_key =
os
.environ.get('OPENAI_KEY2') llm = ChatOpenAI( openai_api_key = openai_key , model = 'gpt-4… from an SQLite database: ``` "sqlite:///<<sqlite database
path
" ``` The script below returns the names of the top…
Re: HTML Image Embedding Issue
Programming
Web Development
1 Month Ago
by Steve_89
…a few things to check: 1. **Relative
Path
**: Ensure that the
path
to your image is relative to the location …images" folder are in the same directory, your current
path
should work. 2. **File Extension**: Make sure the …jpeg". 3. **Case Sensitivity**: Check that the file
path
and name are spelled correctly and that the case matches…
Display product filter on all products category
Programming
Web Development
2 Months Ago
by ianhaneybs
…/sites/simply-heavenly-foods/index.php?route=product/category&
path
=271 has the product filter in the left column. On…/sites/simply-heavenly-foods/index.php?route=product/category&
path
=-1 I would like to have the product filter displayed…
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
2 Months Ago
by usmanmalik57
… langchain.chains import create_retrieval_chain from langchain_core.documents import Document import
os
``` ## Generate Default Responses from Chat-GPT Let's first generate… it in your Python application via the following script. ``` openai_key =
os
.environ.get('OPENAI_KEY2') ``` Next, you must create an object of…
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
2 Months Ago
by usmanmalik57
….prompts import MessagesPlaceholder from langchain_core.messages import HumanMessage, AIMessage import
os
``` ## Paris Olympics Chatbot for Generating a Single Response Let… GPT-4 model, a model that powers Chat-GPT. ``` openai_key =
os
.environ.get('OPENAI_KEY2') llm = ChatOpenAI( openai_api_key = openai_key , model = '…
Question Answering with YouTube Videos Using RAG in LangChain
Programming
Computer Science
2 Months Ago
by usmanmalik57
…MessagesPlaceholder from langchain_core.messages import HumanMessage, AIMessage import
os
``` ## Creating Text Documents from YouTube Videos … index, enabling fast and efficient similarity searches. ``` openai_key =
os
.environ.get('OPENAI_KEY2') ``` ``` text_splitter = RecursiveCharacterTextSplitter( chunk_size=1000,…
Middle Aged Needing Career Advice
Community Center
Geeks' Lounge
2 Months Ago
by BigPaw
… fields I've worked in. I enjoy problem solving and
path
finding. Any and all advice welcome for a new career…
HTML Image Embedding Issue
Programming
Web Development
2 Months Ago
by khan zain
… it's not showing up. I've checked the file
path
, and it seems correct. Below is the code I'm…
Retrieval Augmented Generation with Hugging Face Models in LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
… embedding model from Hugging Face. Pass the embedding model's
path
to the langChain `HuggingFaceEmbeddings` class. You can then use any…
Windows licence
Hardware and Software
Microsoft Windows
1 Month Ago
by bloggingtime
According to Dell's website the Windows licence is specifoc to each particular machine and its details are burned into the BIOS. Is it possible that the original
OS
was Home edition (in which case the licence is not valid for Pro)? Have you tried installing a Home edition?
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
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