Welcome to Open Source, a channel dedicated to providing high-quality content on development of software, mobile application, website, and other related topics.
Our channel features informative and engaging videos that cover a wide range of programming languages, frameworks, and tools. Whether you're a beginner or an experienced developer, you'll find valuable insights and practical tips that will help you enhance your skills and advance your career.
Our videos are designed to provide you with actionable insights that you can apply in your work. We also create shorts that showcase interesting snippets of code, new tools, and other tech-related tidbits that are worth sharing.
Our goal is to create a vibrant community of developers who are passionate about open source and committed to sharing their knowledge and expertise with others. So whether you're looking to sharpen your skills, learn something new, or connect with other like-minded individuals, This is the channel for you.
To evaluate coherence there are metrics like BLEU, and ROUGE. These metrics compare the generated text to reference texts for consistency and logical flow. It returns score between 0 and 1. Higher score indicates the better performance. Relevance can be assessed through semantic similarity measures like cosine similarity with BERT embeddings. It ensures the generated content is pertinent to the given context. For fluency there are perplexity and human evaluation metrics that judge the smoothness and grammatical correctness of the generated text. It basically assess the language model's output quality.
Hi @tki967, Actually I have set the HF_TOKEN as an environment variable(by adding secrets in colab notebook). Hugging Face libraries can automatically pick it up without needing to pass it explicitly in the code. So you don't need to pass the token in you code. But if you want to, you can pass it directly in tokenizer as below: tokenizer = AutoTokenizer.from_pretrained(model_id, token=my_secret_key) I forgot to explain this in the video. Sorry for the confusion.
Hey @malluvocalist1416 Yes, you can use getApplicationDocumentsDirectory method to get the directory path and then create a custom folder using Directory.create from the dart:io library. I have not tested this code but you can write code like below: import 'dart:io'; import 'package:path_provider/path_provider.dart'; Future<String> createDirectory(String folderName) async { final directory = await getApplicationDocumentsDirectory(); final path = directory.path; final customDir = Directory('$path/$folderName'); if (!await customDir.exists()) { await customDir.create(); } return customDir.path; } And then you can save your file in the custom path returned by this createDirectory method.
@@TheOpenSourceChannel but this will create it in the android data folder which is not accessible i have found another solution after searching a lot i got from stack overflow we have to user replace the directory.path with media so that it will be visible in the media folder similar like whatsapp folder
Hi, 2:53 of your video had a yellow line underneath that bool _loading = false was not used, and at 2:57 the yellow line disappeared, which puzzled us. Tell me.
Hi @adilbekkurmanbekuulu7999, Yellow line was there because of the value of the field '_loading' was not used. I have updated the send button code in between, which is not shown in the video. if (!_loading) IconButton( onPressed: () async { _sendChatMessage(_textController.text); }, icon: Icon( Icons.send, color: Theme.of(context).colorScheme.primary, ), ) else const CircularProgressIndicator(), Thanks for watching!
It is used for presenting users with a limited set of choices (typically 2-5 options). When you have a set of options and you want users to pick one or multiple options, it is a great way to present users with multiple options using the segmented button. Common use cases include: Toggle views in your app Toggle theme (Dark, Light, System) Select the size of an item in a shopping app (Small, Large, Medium) Selecting options with dependencies (For instance based on a selected payment option you would like to provide another specific set of options to choose from - like offers available on a selected payment method)
I amm getting this error, and follow your code, am not able to make send msg button , errro is >>> "Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API."
@FlutterTeam-su1em Thanks for watching the video. Have you generated the API key from Google AI Studio? You need to add it to your project in env.json file. Watch the video at 0:48 to add api key in your project.
@sahanfernando5039 Thanks for watching the video. To upgrade/downgrade existing subscription you have to provide "ChangeSubscriptionParam" while calling "InAppPurchase.buyNonConsumable". One thing you need to provide here is the purchase object of the existing subscription and another thing which is optional is proration mode that indicates how to handle the existing subscription when the new subscription comes into effect.
Hey @RenderRift Now GeminiAI demo is available on Dartpad. Check it out - dartpad.dev/?sample=google-ai-sdk You can watch the demo here - ru-vid.com3qz_s5Ud42s?feature=share
I agree @fatihc9230 we shouldn't publish api key like this. It is just to make the demo easier to understand. Actually we should use flutter_dotenv package to store environment variables.
Please try adding the line below in the main() function WidgetsFlutterBinding.ensureInitialized(); Your main() function should look like this. void main() { WidgetsFlutterBinding.ensureInitialized(); runApp(const MyApp()); }
Hey @michaelandreas1857 Now GeminiAI demo is available on Dartpad. Check it out - dartpad.dev/?sample=google-ai-sdk You can watch the demo here - ru-vid.com3qz_s5Ud42s?feature=share
Thank you for watching the video! Did you add google_generative_ai package? Please watch the video at 0:34 You can run the command in your terminal as explained or add the package in your pubspec.yaml file.
Brilliant Flutter guide! Your clear explanations make navigating Flutter a breeze. Kudos for simplifying complex concepts. Grateful for the insights shared. Keep empowering us with your expertise! 🚀