Badrishvu commited on
Commit
a9f9a8b
1 Parent(s): dbdcd7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -13
app.py CHANGED
@@ -1,14 +1,7 @@
1
- import streamlit as st
2
- from transformers import pipeline
3
 
4
-
5
- pipe=pipeline('sentiment-analysis')
6
- text=st.text_area('Enter text')
7
-
8
-
9
-
10
-
11
- if text:
12
- out=pipe(text)
13
- st.json(out)
14
-
 
1
+ import { HfInference } from "@huggingface/inference";
 
2
 
3
+ const inference = new HfInference(HF_TOKEN);
4
+ await inference.conversational({
5
+ model: "facebook/blenderbot-400M-distill",
6
+ inputs: "Going to the movies tonight - any suggestions?",
7
+ });