Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModel
|
3 |
|
|
|
4 |
def get_model_summary(model_name):
|
5 |
model = AutoModel.from_pretrained(model_name)
|
6 |
return str(model)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModel
|
3 |
|
4 |
+
@spaces.GPU
|
5 |
def get_model_summary(model_name):
|
6 |
model = AutoModel.from_pretrained(model_name)
|
7 |
return str(model)
|