DHEIVER commited on
Commit
764fb2f
1 Parent(s): ad8c1ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,5 +1,9 @@
1
  import gradio as gr
2
 
 
 
 
 
3
  def create_gradio_app(model, tokenizer):
4
  def gradio_fn(question):
5
  inputs = tokenizer(question, return_tensors="pt")
 
1
  import gradio as gr
2
 
3
+ from transformers import AutoModelForCausalLM
4
+
5
+ model = AutoModelForCausalLM.from_pretrained("automaise/quokka-7b")
6
+
7
  def create_gradio_app(model, tokenizer):
8
  def gradio_fn(question):
9
  inputs = tokenizer(question, return_tensors="pt")