Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
HURUAI
/
aidoctor
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
aidoctor
/
app.py
HURUAI
Update app.py
942c3fd
almost 3 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
211 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
'text-generation'
, model=
"gpt2"
)
text = st.text_area(
"Ask the Doctor a Question?"
)
if
text:
out = pipe(text)
st.json(out)