Import necessary packages
Browse filesgradio, torch, spaces, time
app.py
CHANGED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import torch
|
3 |
+
from transformers import (
|
4 |
+
AutoModelForCausalLM,
|
5 |
+
AutoTokenizer,
|
6 |
+
TextIteratorStreamer
|
7 |
+
)
|
8 |
+
import os
|
9 |
+
import threading import Thread
|
10 |
+
import spaces
|
11 |
+
import time
|