srush commited on
Commit
d782de7
·
1 Parent(s): 7365157

Upload with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -39,11 +39,12 @@ with minichain.start_chain("ner") as backend:
39
  # )
40
  # print(results)
41
 
42
- ner_prompt.set_display_options(markdown=True)
43
- team_prompt.set_display_options(markdown=True)
44
 
45
- prompt.to_gradio(fields =["text_input", "labels", "domain"],
46
- examples=[["An NBA playoff pairing a year ago, the 76ers (39-20) meet the Miami Heat (32-29) for the first time this season on Monday night at home.", "Team, Date", "Sports"]]).launch()
 
47
 
48
 
49
  # View prompt examples.
 
39
  # )
40
  # print(results)
41
 
42
+ gradio = prompt.to_gradio(fields =["text_input", "labels", "domain"],
43
+ examples=[["An NBA playoff pairing a year ago, the 76ers (39-20) meet the Miami Heat (32-29) for the first time this season on Monday night at home.", "Team, Date", "Sports"]])
44
 
45
+
46
+ if __name__ == "__main__":
47
+ gradio.launch()
48
 
49
 
50
  # View prompt examples.