Spaces:
Sleeping
Sleeping
Grady Harwood
ae793cf
<html> | |
<head> | |
<script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.js"></script> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.css" /> | |
</head> | |
<body> | |
<gradio-lite> | |
import gradio as gr | |
from transformers_js_py import pipeline | |
pipe = await pipeline('sentiment-analysis') | |
demo = gr.Interface.from_pipeline(pipe) | |
demo.launch() | |
<gradio-requirements> | |
transformers-js-py | |
</gradio-requirements> | |
</gradio-lite> | |
</body> | |
</html> |