Spaces:
Running
on
Zero
Running
on
Zero
Staticaliza
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
|
|
1 |
import torch
|
2 |
-
from transformers import TextIteratorStreamer
|
3 |
import threading
|
4 |
import spaces
|
5 |
|
|
|
|
|
6 |
print("Is CUDA available?", torch.cuda.is_available())
|
7 |
|
8 |
class ModelWrapper:
|
|
|
1 |
+
import gradio as gr
|
2 |
import torch
|
|
|
3 |
import threading
|
4 |
import spaces
|
5 |
|
6 |
+
from transformers import TextIteratorStreamer
|
7 |
+
|
8 |
print("Is CUDA available?", torch.cuda.is_available())
|
9 |
|
10 |
class ModelWrapper:
|