Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio
|
|
2 |
import torch
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
4 |
|
5 |
-
model = AutoModelForCausalLM.from_pretrained("cyberagent/open-calm-small"
|
6 |
tokenizer = AutoTokenizer.from_pretrained("cyberagent/open-calm-small")
|
7 |
|
8 |
def my_inference_function(name):
|
@@ -28,4 +28,4 @@ gradio_interface = gradio.Interface(
|
|
28 |
inputs = "text",
|
29 |
outputs = "text"
|
30 |
)
|
31 |
-
gradio_interface.launch(
|
|
|
2 |
import torch
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
4 |
|
5 |
+
model = AutoModelForCausalLM.from_pretrained("cyberagent/open-calm-small")
|
6 |
tokenizer = AutoTokenizer.from_pretrained("cyberagent/open-calm-small")
|
7 |
|
8 |
def my_inference_function(name):
|
|
|
28 |
inputs = "text",
|
29 |
outputs = "text"
|
30 |
)
|
31 |
+
gradio_interface.launch()
|