dhanishetty commited on
Commit
8608017
·
verified ·
1 Parent(s): 3ae4fcd

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -28
app.py DELETED
@@ -1,28 +0,0 @@
1
- import gradio as gr
2
- from transformers import pipeline
3
-
4
- pipe = pipeline("text-classification", model="mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis")
5
-
6
- def text_classification(prompt):
7
- pro = pipe(prompt)
8
- return pro
9
-
10
-
11
- title = "Enter your Prompt"
12
- description = """
13
-
14
- # This is Fine-tuned BERT based Model
15
-
16
- <img src = "https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg" width=300px>
17
- """
18
-
19
-
20
- gr.Interface( fn = text_classification,
21
- inputs = gr.Textbox(),
22
- outputs= gr.Textbox() ,
23
- title=title,
24
- description=description,
25
-
26
- ).launch()
27
-
28
-