CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 22:40:17 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"f30c7ef141f1d01f9508d71499a38759"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=xbq0v%2FGYtSljD7oV5bh9YpHle8yD5CH9I3K%2FFT%2BEAJUQ6cxFH%2FrDcxqHtPA1gEGM%2BfFuJEuOOd%2B6CMJXbj2pLLEPWFZzu2h03cduWT0FhcdHZhFCQtuFCaEBvQMfpov0ECDGH9OWhl2gdGW6lh4VIAMHqXBmd9%2FFec13CBHJ5OMnyRqBrVaeLRenSmlOaD%2Beyc1OeDIJMG8cycxVzGz1ocJvZ%2B3tjE%2FvG0m1lmV0kBvsW7oKtYp88s2W0%2FZw9eZjEzQaiT5nAhHwUHCxznJttw%3D%3D--7b2x%2B9420gDYr5U9--LANTLLtsHylyPd0RxoZ6TA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.641580600.1753483216; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 22:40:16 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 22:40:16 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E216:FB852:125FC8:1A10B1:688407D0
iamaziz’s gists · GitHub
View GitHub Profile
{{ message }}
Instantly share code, notes, and snippets.
🎲
Chatting with LLMs and/or Programming them ...
iamaziz
/ vector_search-vs-semantic_reranker.ipynb
Created
January 15, 2025 06:17
RAG: vector search vs. semantic reranker
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
iamaziz
/ df2fhtml.py
Created
August 24, 2024 15:11
Convert pd.dataframe df to FastHTML table. Similar to `df.to_html()` but different
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fasthtml import common as fh | |
def df2fhtml(df: pd.DataFrame, with_headers: bool=True, **kwargs): | |
cols = df.columns | |
header = fh.Tr(*[fh.Th(fh.Label(col)) for col in cols]) | |
rows = [fh.Tr(*[fh.Td(df[col][i]) for col in cols]) for i in range(len(df))] | |
return fh.Table(header if with_headers else '', *rows, **kwargs) |
iamaziz
/ dspy_ollama_getting_started.ipynb
Last active
July 30, 2024 15:01
Getting started with DSPy and Ollama
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
iamaziz
/ embedding_funcs.py
Last active
April 13, 2024 01:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
from langchain_community.embeddings import ( | |
OpenAIEmbeddings, | |
OllamaEmbeddings, | |
HuggingFaceEmbeddings, | |
HuggingFaceBgeEmbeddings | |
) | |
def embedding_func(selected_embedding: str = "HuggingFaceEmbeddings"): | |
""" |
iamaziz
/ ollachat_ar.py
Last active
April 4, 2025 14:09
Ollama UI for Arabic (right-to-left) based on: https://github.com/iamaziz/ollachat (example in the comments)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import datetime | |
import streamlit as st | |
from llama_index.llms import Ollama | |
from llama_index.llms import ChatMessage | |
# https://docs.llamaindex.ai/en/stable/examples/llm/ollama.html |
iamaziz
/ code_completion_ide.py
Last active
January 12, 2025 13:22
simple offline code completion example with ollama/streamlit and code execution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from io import StringIO | |
import streamlit as st # pip install streamlit | |
from code_editor import code_editor # pip install streamlit_code_editor | |
import ollama as ol # pip install ollama | |
st.set_page_config(layout='wide') | |
st.title('`Offline code completion`') |
iamaziz
/ arabic_llm.ipynb
Last active
February 22, 2024 07:47
Out-of-the-box open LLM generating Arabic text
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
iamaziz
/ custom_arabic_llm.ipynb
Created
February 22, 2024 07:08
Custom open `local` LLMs (Ollama) for Arabic language
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
iamaziz
/ custom_arabic_llm.ipynb
Last active
February 22, 2024 07:07
Custom open `local` LLMs (Ollama) for Arabic language
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
iamaziz
/ fast_speech_text_speech_steramlit_app.py
Last active
May 28, 2024 08:08
— forked from thomwolf/fast_speech_text_speech.py
speech to text to speech (Srteamlit App) - example in the comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" To use: install Ollama (or LLM studio), clone OpenVoice, run this script in the OpenVoice directory | |
git clone https://github.com/myshell-ai/OpenVoice | |
cd OpenVoice | |
git clone https://huggingface.co/myshell-ai/OpenVoice | |
cp -r OpenVoice/* . | |
pip install whisper pynput pyaudio streamlit ollama | |
script source: https://x.com/Thom_Wolf/status/1758140066285658351?s=20 | |
""" |
NewerOlder
You can’t perform that action at this time.