antony-pk's picture
Update app.py
7e64fd9 verified
raw
history blame
300 Bytes
import gradio as gr
import torch
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
TextIteratorStreamer
)
import os
import threading import Thread
import spaces
import time
token = os.environ["HF_TOKEN"]
model_name = ""
model = AutoModelForCausalLM.from_pretrained(
)