Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,7 @@
|
|
1 |
-
import
|
2 |
-
from transformers import pipeline
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
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 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|