Spaces:
Runtime error
Runtime error
Commit
•
5330866
1
Parent(s):
a2a6566
Update app.py
Browse files
app.py
CHANGED
@@ -8,5 +8,5 @@ def greet(text):
|
|
8 |
pipe = pipeline("sentiment-analysis", tokenizer=tokenizer, model=model)
|
9 |
return pipe(text)[0]['label']
|
10 |
|
11 |
-
iface = gr.Interface(fn=greet,
|
12 |
-
iface.launch()
|
|
|
8 |
pipe = pipeline("sentiment-analysis", tokenizer=tokenizer, model=model)
|
9 |
return pipe(text)[0]['label']
|
10 |
|
11 |
+
iface = gr.Interface(fn=greet, inputs=gr.inputs.Textbox(placeholder="Lütfen Cümle Giriniz...", lines=5), outputs="text")
|
12 |
+
iface.launch(share=True)
|