Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
script
- Page 1
Claude 3 Opus Vs. Google Gemini Vs. GPT-4 for Zero-Shot Text Classification
Programming
Computer Science
20 Hours Ago
by usmanmalik57
…Importing and Installing Required Libraries The following
script
installs the corresponding APIs for importing Claude…google-cloud-aiplatform !pip install openai ``` The
script
below imports the required libraries. ``` import …` column contains sentiment labels. The following
script
imports the dataset, prints the dataset shape…
7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM
Programming
Computer Science
4 Days Ago
by usmanmalik57
… without further ado. ## Importing and Installing Required Libraries The following
script
installs the libraries required to run scripts in this article… the libraries are pre-installed in the environment. The following
script
imports the required libraries. ``` from transformers import AutoModelForCausalLM, AutoTokenizer, logging…
Re: DomContentLoaded vs jQuery Ready fn
Programming
Web Development
3 Days Ago
by toneewa
…/jquery-3.6.0.min.js"></
script
> <
script
> function benchmarkJQueryReady() { var startTime = performance…lt;title>Page Loading Benchmark</title> <
script
> function benchmarkDomContentLoaded() { var startTime = performance.now();…
Fine Tuning Google Gemma Model for Text Classification in Python
Programming
Computer Science
3 Weeks Ago
by usmanmalik57
… without ado. ## Installing and Importing Required Libraries ## The following
script
installs libraries required to run scripts in this article. ``` !pip3…load_in_4bit=True, bnb_4bit_quant_type="nf4", bnb_4bit_compute_dtype=torch.bfloat16 ) ``` The
script
below imports the Gemma 2b tokenizer and model. You can…
Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace
Programming
Computer Science
2 Weeks Ago
by usmanmalik57
…!pip install kaggle !pip install huggingface-hub ``` The
script
below imports required libraries. ``` from langchain.text_splitter import … = RecursiveCharacterTextSplitter( chunk_size=1000, chunk_overlap=200, length_function=len ) ``` The
script
below divides all the documents into text chunks using the…
Extract Tabular Data from PDF Images using Hugging Face Table Transformer
Programming
Computer Science
3 Weeks Ago
by usmanmalik57
…unzip roboto.zip -d ./roboto ``` The following
script
imports the required libraries into your application. ``` from… Importing and Converting PDF to Image The following
script
defines the `pdf_to_img()` function that converts PDF…this image. ### Detecting Tables The following
script
imports the preprocessor and model objects for …
GCC Fails to Recognize Parameters
Programming
3 Weeks Ago
by snah19
…, and it's failing to recognize certain parameters and the
script
I used to build FFmpeg source code follows: #!/usr/bin…
Re: How Do I address ERROR: access violation writing 0x0000000000005140,
Programming
Web Development
1 Week Ago
by rproffitt
… mine I'd place a logging command in my python
script
at each step so I could nail down which line…
Re: GCC Fails to Recognize Parameters
Programming
3 Weeks Ago
by Reverend Jim
I can't offer any suggestions other than to just download the compiled app for your system instead of building it yourself.
Re: GCC Fails to Recognize Parameters
Programming
3 Weeks Ago
by rproffitt
Here's another problem. When we change the OS not only must we setup the compiler, environment and such but sometimes an OS API could be deprecated or removed. You made mention of a possible OS change so that's a possibility. You obtained this code from somewhere. Go back there and see if they updated it for your new OS.
Track Faces from Videos with Margins Using Deep Learning in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
…://static.daniweb.com/attachments/4/7d5d146f3a8a97a52b282d8a9df51d0d.png) The following
script
detects faces using the [`retinaface`](https://github.com/serengil/… with extra pixels using the `pad_image_to_size` function defined in the
script
below: ``` def pad_image_to_size(img, target_height, target_width): # Calculate the padding…
Multivariate Stock Price Prediction with Transformer Encoder in TensorFlow
Programming
Computer Science
2 Months Ago
by usmanmalik57
… CNN layers with `TransformerEncoder` layer, as shown in the following
script
. ``` # input shape: (60 time steps, 5 features) input_layer = … callbacks=[early_stopping], verbose=1 ) ``` ## Evaluating Model Performance ## The following
script
evaluates the model performance on the test set. ``` # Make predictions…
TensorFlow Keras Sequence Data Generator for Multimodal Classification
Programming
Computer Science
2 Months Ago
by usmanmalik57
…And the `overall_sentiment` column contains output labels. The following
script
performs the above preprocessing steps. ``` image_folder_path = '/content/… adam_optimizer, loss='categorical_crossentropy', metrics=['accuracy']) ``` The following
script
trains the model. We save the model that achieves …
Comparing Google Gemini Pro with OpenAI GPT-4 for Zero-Shot Classification
Programming
Computer Science
1 Month Ago
by usmanmalik57
…/general/custom-service-account) and API Key information. The following
script
does that. ``` os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = "PATH_TO_VERTEX_AI_SERVICE_ACCOUNT JSON…, we can evaluate the model's performance using the following
script
. ``` accuracy = accuracy_score(all_sentiments, dataset["sentiment"]) …
PDF Image Table Extractor Web App with Google Gemini Pro and Streamlit
Programming
Computer Science
1 Month Ago
by usmanmalik57
…, you will need to install the `streamlit` library. The following
script
installs these libraries: ``` google-cloud-aiplatform streamlit ``` ## Creating Google…code snippets for improved readability. ### Import Required Libraries ### The following
script
imports required libraries for the `main.py` file. ``` from …
Converting PDF Image to CSV Using Multimodal Google Gemini Pro
Programming
Computer Science
1 Month Ago
by usmanmalik57
…can install the Google Cloud API via the following
script
installs. ``` pip install --upgrade google-cloud-aiplatform… get free credits worth $300. The following
script
imports the required libraries into our application. ```…writerow(processed_line) ``` Once you execute the above
script
, you will see the following CSV file in …
Reducing Video Frames and Frame Rates (FPS) in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
… for video editing and manipulation. The following
script
installs the moviepy and [deepface](https://github.…can be costly. For example, in the following
script
, we define the `reduce_total_frames` function that reduces…and writes it to the output path. The following
script
defines the `reduce_total_frames` function that performs the above …
Mysidia Adoptables PHP Help
Programming
Web Development
2 Months Ago
by techtheclone
… Controller * @package Controller * @author Hall of Famer * @copyright Mysidia Adoptables
Script
* @link http://www.mysidiaadoptables.com * @since 1.3.2 * @todo…
Problem Returning MySQL Stored Procedure results using Python
Programming
Databases
2 Months Ago
by cored0mp
… access. To wit, here is what I'm getting for
script
output: MySQLCursorBuffered: (a result of CALL testprocedure(@_testpr.. [('sometable1',), ('funtablename…
Re: Seeking Help for Creating a Circle Generator Tool
Programming
Game Development
1 Month Ago
by jackwells
…;circle"></div> <
script
src="
script
.js"></
script
> </body> </html>…
Why am getting different syntax errors when running a Python script
Programming
Software Development
1 Month Ago
by Tom_45
I am working on an exercise from Google's Python class dealing with popular baby names. I have the program running properly when using only one filename, but when I try to use the wildcard to get all files with baby####.html files I get differing errors every time I run the program. Here is the problem code: matches = re.findall('<…
Re: Why am getting different syntax errors when running a Python script
Programming
Software Development
1 Month Ago
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
1 Month Ago
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.
Re: Multilabel Text Classification using Hugging Face Models for TensorFlow
Programming
Computer Science
2 Months Ago
by Aravind_11
Thank you very much for this informative example! I have a question regarding the line "bert = TFAutoModel.from_pretrained(model_name, from_pt = True)". Since we are using Tensorflow here, shouldn't we leave out "from_pt = True" ?
Re: Track Faces from Videos with Margins Using Deep Learning in Python
Programming
Computer Science
1 Month Ago
by EdwardMatthew
It's fantastic, I have read this article and it is super amazing. thankyou for the knowledge.
Re: Fine-Tuning OpenAI Whisper Model for Audio Classification in PyTorch
Programming
Computer Science
1 Month Ago
by habi_2
how to use the best_model.pt
Re: Using ChatGPT to Interact with Third-Party Applications in Python
Programming
Computer Science
1 Month Ago
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.
Re: Reducing Video Frames and Frame Rates (FPS) in Python
Programming
Computer Science
2 Months Ago
by Reverend Jim
Since the underlying tool is ffmpeg, why bother with all the code and overhead? You can just use ffmpeg directly with the -r option. Aside from this I enjoyed the article (and the others you have posted).
Re: Reducing Video Frames and Frame Rates (FPS) in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
Yes, that's an option, but while you are developing Python applications where you have to process multiple videos, I don't think ffmpeg is scalable enough. Thanks for your feedback r though :)
Re: Sentiment Analysis with Data Augmentation Using ChatGPT
Programming
Computer Science
2 Months Ago
by Abdul_116
Fascinating to see sentiment analysis being applied to understand Pakistani consumers on High Street Pakistan! As online shopping thrives, it'd be interesting to compare brand opinions on both platforms - how do traditional High Street stores fare against online giants in terms of sentiment? Could data augmentation help bridge the data gap for …
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
Meet People
Forums
Top Members
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