Spaces:
Runtime error
Runtime error
Commit
·
3906f8e
1
Parent(s):
50f1e8e
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,15 @@
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#import gradio as gr
|
2 |
+
#gr.Interface.load("models/teo-sanchez/en_ner_prompting").launch()
|
3 |
import gradio as gr
|
4 |
|
5 |
+
from transformers import pipeline
|
6 |
+
|
7 |
+
pipe = pipeline("ner", model="models/teo-sanchez/en_ner_prompting")
|
8 |
+
|
9 |
+
iface = gr.Interface(
|
10 |
+
inputs='text',
|
11 |
+
outputs='text',
|
12 |
+
examples=[["Hyperrealistic dslr film still of! justin bieber! disguised as beaver, stunning 8 k octane comprehensive 3 d render, inspired by istvan sandorfi & greg rutkowski & unreal engine, perfect symmetry, dim volumetric cinematic lighting, extremely hyper - detailed, incredibly real lifelike attributes & flesh texture, intricate, masterpiece, artstation, stunning"]]
|
13 |
+
)
|
14 |
+
|
15 |
+
iface.launch()
|