Gyr0MAN commited on
Commit
3955fe2
β€’
1 Parent(s): 0f5fcd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,10 +1,9 @@
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)
 
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)