GithubHelp home page GithubHelp logo

karthickme / ref-coursera-mlops-c2-final-huggingface Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nogibjj/coursera-mlops-c2-final-huggingface

0.0 0.0 0.0 15 KB

Coursera Lab for MLOps course covers Hugging Face

License: MIT License

Shell 9.36% Python 65.33% Makefile 9.26% Dockerfile 16.05%

ref-coursera-mlops-c2-final-huggingface's Introduction

CI Codespaces Prebuilds

Lab: Hugging Face and Gradio Web Applications

Overview

In this lab, you will work with Hugging Face and Gradio web applications to modify a Hello World app, run a summarization app, explore customizing summarization applications, and build a command-line tool using the click framework.

Goals

By the end of this lab, you will:

  1. Understand the benefits of using web frameworks like Gradio for machine learning solutions.
  2. Learn how to modify and work with Hugging Face and Gradio applications.
  3. Gain experience in building command-line tools using the click framework.

Tasks

A. Modify Hello World

  1. Run the following Hugging Face and Gradio web application helloApp by using: python helloApp.py.

  2. Change this application to be a calculator that adds two numbers using the calculator function in mylib, i.e., from mylib.calculator import add.

Reflection Question: Why does a web framework like Gradio help build machine learning solutions faster?

B. Run the Summarization App

  1. Run the summarizeApp.py by using python summarizeApp.py and type in some of the text found in text.txt. Preview it by pasting the URL into the web preview tool.

Reflection Question: How does the prediction change when you type more or less of the document?

C. Customize Summarization Applications

  1. Run load_model.py to see a full example of how to customize summarization applications.

D. Build a Command-Line Tool

  1. Build a command-line tool that is similar in functionality to the Gradio app using the click framework.

References

ref-coursera-mlops-c2-final-huggingface's People

Contributors

noahgift avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.