Giter Club home page Giter Club logo

event_summarizer's Introduction

title emoji sdk sdk_version python_version app_file pinned
Event Summarizer
gradio
3.32.0
3.10.0
app.py
false

Event(brite) Summarizer

Tool for summarizing Eventbrite events for inclusion in event calendars. Takes in a URL and a generic prompt, which are fed into a Large Language Model (in this case OpenAI) along with the event scrapes the title, subtitle, and event details.

Originally created for http://sf.funcheap.com

Environment Requirements:

  • Python 3.10
  • Environment variables OPENAI_API_KEY and EVENTBRITE_API_KEY, available through the Eventbrite API Page.

Eventbrite-specific notes

I assume that the event 'description' and 'summary' fields contain the same content (verified with checking 10 urls)

The API does not return the event title or subtitle, so we use Beautifulsoup to extract them.

The user-generated event description can be hard to parse from raw HTML, but is served succinctly via the API. The Eventbrite API appears to use utf-8-sig encoding. To handle that encoding, we replace \uffef with a null string.

These inputs (title, subtitle, details) are combined and fed in along with the prompt.

TODO:

  • Handle errors - will currently error gracelessly on expired events
  • Meaningfully use feedback / integrate with Weights & Biases
  • Allow auto-regeneration of text if output does not meet expectation (exclusion characters, etc)
  • Dropdown for model type

event_summarizer's People

Contributors

emunsing avatar

Watchers

 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.