Spaces:
Runtime error
Runtime error
adhisetiawan
commited on
Commit
β’
bd2b1d8
1
Parent(s):
6c19b81
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
# Install Gradio for creating an interface
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
-
from transformers import
|
|
|
5 |
from threading import Thread
|
6 |
|
7 |
# Load the fine-tuned model and tokenizer
|
|
|
1 |
# Install Gradio for creating an interface
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
+
from transformers import AutoTokenizer, StoppingCriteria, StoppingCriteriaList, TextIteratorStreamer
|
5 |
+
from peft import AutoPeftModelForCausalLM
|
6 |
from threading import Thread
|
7 |
|
8 |
# Load the fine-tuned model and tokenizer
|