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