frankrobotics commited on
Commit
e0ca228
·
verified ·
1 Parent(s): 50ca8c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,15 +1,15 @@
1
- import gr from gradio
2
  import json
3
 
4
- from transformers import pipeline
5
- classifier = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")
6
 
7
  def tagging(
8
  input: str,
9
  tags: tuple[str]
10
  ):
11
  text = json.loads(str)
12
- return text;
13
 
14
  app = gr.Interface(fn=tagging, inputs=[
15
  gr.Textbox(label="Your input here"),
 
1
+ import gradio as gr
2
  import json
3
 
4
+ # from transformers import pipeline
5
+ # classifier = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")
6
 
7
  def tagging(
8
  input: str,
9
  tags: tuple[str]
10
  ):
11
  text = json.loads(str)
12
+ return text
13
 
14
  app = gr.Interface(fn=tagging, inputs=[
15
  gr.Textbox(label="Your input here"),