Spaces:
Runtime error
Runtime error
Commit
·
0efe4a0
1
Parent(s):
7055253
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
import streamlit as st
|
3 |
+
from transformers import pipeline
|
4 |
|
5 |
+
pipe = pipeline('bigcode/starpii')
|
6 |
+
text = st.text_area('enter some text!')
|
7 |
+
|
8 |
+
if text:
|
9 |
+
out = pipe(text)
|
10 |
+
st.json(out)
|
11 |
+
#gr.Interface.load("models/bigcode/starpii").launch()
|