Skip to content

Instantly share code, notes, and snippets.

View imartinez's full-sized avatar

Iván Martínez imartinez

View GitHub Profile
@imartinez
imartinez / Google Play Rating Widget for Dashing.md
Last active February 22, 2017 05:38
Google Play Rating Widget for Dashing
@imartinez
imartinez / Google Play Reviews Widget for Dashing.md
Last active February 28, 2017 09:02
Google Play Reviews Widget for Dashing
@imartinez
imartinez / Bugsnag Error Widget for Dashing.md
Last active July 29, 2016 08:02
Bugsnag Error Widget for Dashing

#Bugsnag Error Widget for Dashing.io

Dashing Widget for displaying Bugsnag errors count. Supports any number of bugsnag projects and error configurations.

Preview

##Usage

To use this widget you have two options:

@imartinez
imartinez / fastapi_streaming_local_llama2.py
Created September 26, 2023 17:21
FastAPI streaming local Llama 2 GGUF LLM using LLamaIndex
import uvicorn
from contextlib import asynccontextmanager
from fastapi import FastAPI
from fastapi.responses import StreamingResponse
from typing import AsyncGenerator
from llama_index.llms import LlamaCPP
from llama_index.llms.llama_utils import messages_to_prompt, completion_to_prompt
llms = {}