Spaces:
Sleeping
Sleeping
Download app.py from krushna/IMDB_Auto_Complete: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/spaces/krushna/IMDB_Auto_Complete/resolve/main/app.py
- Command line
-
hf download hf://spaces/krushna/IMDB_Auto_Complete/app.py
-
curl -L -o app.py https://huggingface.co/spaces/krushna/IMDB_Auto_Complete/resolve/main/app.py
331 Bytes
| from fastai.text.all import * | |
| import gradio as gr | |
| learn = load_learner('imdb10epochcolab.pth') | |
| def predict(text, number_of_words,temperature): return learn.predict(text, n_words=int(number_of_words), temperature=temperature) | |
| intr = gr.Interface(predict, ["text","number", gr.Slider(0.1, 1,0.5)], "text") | |
| intr.launch(inline = False) |