Jin Zhu commited on
Commit
a8c73d1
·
1 Parent(s): 741fa39

update code

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. src/app.py +2 -2
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ cache/*
src/app.py CHANGED
@@ -31,7 +31,7 @@ if os.environ.get('SPACE_ID'):
31
 
32
 
33
  import streamlit as st
34
- from FineTune.model import ComputeScore
35
  import time
36
 
37
  # -----------------
@@ -95,7 +95,7 @@ def load_model(from_pretrained, base_model, cache_dir, device):
95
  cache_dir = cache_dir
96
 
97
  with st.spinner("🔄 Loading model... This may take a moment on first launch."):
98
- model = ComputeScore.from_pretrained(
99
  from_pretrained,
100
  base_model,
101
  base_model,
 
31
 
32
 
33
  import streamlit as st
34
+ from FineTune.model import ComputeStat
35
  import time
36
 
37
  # -----------------
 
95
  cache_dir = cache_dir
96
 
97
  with st.spinner("🔄 Loading model... This may take a moment on first launch."):
98
+ model = ComputeStat.from_pretrained(
99
  from_pretrained,
100
  base_model,
101
  base_model,