dwb2023 commited on
Commit
c26a148
1 Parent(s): 51dd1fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)