Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from typing import Iterator
|
|
5 |
import gradio as gr
|
6 |
import spaces
|
7 |
import torch
|
8 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
9 |
|
10 |
MAX_MAX_NEW_TOKENS = 1024
|
11 |
DEFAULT_MAX_NEW_TOKENS = 512
|
|
|
5 |
import gradio as gr
|
6 |
import spaces
|
7 |
import torch
|
8 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer, pipeline
|
9 |
|
10 |
MAX_MAX_NEW_TOKENS = 1024
|
11 |
DEFAULT_MAX_NEW_TOKENS = 512
|