Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
togethercomputer
/
GPT-JT
like
210
Runtime error
App
Files
Files
Community
6
juewang
commited on
Nov 25, 2022
Commit
7f5cbab
•
1 Parent(s):
0c8c7dc
Update app.py
Browse files
Files changed (1)
hide
show
app.py
+1
-0
app.py
CHANGED
Viewed
@@ -2,6 +2,7 @@ import streamlit as st
2
import requests
3
import time
4
5
def infer(prompt,
6
model_name,
7
max_new_tokens=10,
2
import requests
3
import time
4
5
+
@st.cache
6
def infer(prompt,
7
model_name,
8
max_new_tokens=10,