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
# ---------------- | |
# ui.py | |
# ---------------- | |
import gradio as gr | |
from PIL import Image | |
import numpy as np | |
import mlx.core as mx | |
from stable_diffusion import StableDiffusion |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"name": "Apple Silicon", | |
"load_params": { | |
"n_ctx": 2048, | |
"n_batch": 512, | |
"rope_freq_base": 10000, | |
"rope_freq_scale": 1, | |
"n_gpu_layers": 1, | |
"use_mlock": false, | |
"main_gpu": 0, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/bin/bash | |
# converts and saves youtube video to mp3 | |
function convert_to_mp3() { | |
#ensure the video is downloaded to the correct location (youtube folder in Downloads) | |
if [ -d "~/Downloads/youtube" ]; then | |
cd ~/Downloads/youtube | |
else |