Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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")
|