Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
import spaces
|
4 |
-
from
|
|
|
5 |
|
6 |
-
tokenizer =
|
7 |
model = AutoModelForCausalLM.from_pretrained("ping98k/typhoon-7b-rag-instruct-th")
|
8 |
|
9 |
@spaces.GPU(duration=120)
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
import spaces
|
4 |
+
from tokenizers import Tokenizer
|
5 |
+
from transformers import AutoModelForCausalLM
|
6 |
|
7 |
+
tokenizer = Tokenizer.from_pretrained("ping98k/typhoon-7b-rag-instruct-th")
|
8 |
model = AutoModelForCausalLM.from_pretrained("ping98k/typhoon-7b-rag-instruct-th")
|
9 |
|
10 |
@spaces.GPU(duration=120)
|