Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ def classify_text(input_text):
|
|
| 7 |
result = nlp(input_text)[0]
|
| 8 |
return result["label"], result["score"]
|
| 9 |
|
| 10 |
-
with gr.Blocks() as
|
| 11 |
with gr.Row():
|
| 12 |
with gr.Column():
|
| 13 |
text_input = gr.Textbox(label="Enter text to classify")
|
|
@@ -20,4 +20,4 @@ with gr.Blocks() as demo:
|
|
| 20 |
examples = gr.Examples(examples=["This is a positive review.", "This is a negative review."],
|
| 21 |
inputs=[text_input])
|
| 22 |
|
| 23 |
-
|
|
|
|
| 7 |
result = nlp(input_text)[0]
|
| 8 |
return result["label"], result["score"]
|
| 9 |
|
| 10 |
+
with gr.Blocks() as app:
|
| 11 |
with gr.Row():
|
| 12 |
with gr.Column():
|
| 13 |
text_input = gr.Textbox(label="Enter text to classify")
|
|
|
|
| 20 |
examples = gr.Examples(examples=["This is a positive review.", "This is a negative review."],
|
| 21 |
inputs=[text_input])
|
| 22 |
|
| 23 |
+
app.launch()
|