pr0mila commited on
Commit
e2711e5
·
1 Parent(s): de7e90f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -43,8 +43,7 @@ def abstractive_text(text):
43
 
44
 
45
  import gradio as gr
46
- sum_iface = gr.Interface(fn=abstractive_text, inputs= ["text"],outputs=["text"],title="Case summary generation")
47
- sum_iface.launch(share=False)
48
 
49
 
50
 
@@ -73,8 +72,7 @@ def get_result_with_bloom(text):
73
 
74
 
75
 
76
- txtgen_iface = gr.Interface(fn=get_result_with_bloom,inputs = "text",outputs=["text"],title="Text generation with Bloom")
77
- txtgen_iface.launch(share=True)
78
 
79
 
80
  import spacy.cli
@@ -105,8 +103,7 @@ def ner_drugs(text):
105
 
106
 
107
 
108
- med_iface = gr.Interface(fn=ner_drugs,inputs = "text",outputs=["text"],title="Drugs Named Entity Recognition")
109
- med_iface.launch(share=True)
110
 
111
 
112
 
 
43
 
44
 
45
  import gradio as gr
46
+ sum_iface = gr.Interface(fn=abstractive_text, inputs= ["text"],outputs=["text"],title="Case summary generation").queue()
 
47
 
48
 
49
 
 
72
 
73
 
74
 
75
+ txtgen_iface = gr.Interface(fn=get_result_with_bloom,inputs = "text",outputs=["text"],title="Text generation with Bloom").queue()
 
76
 
77
 
78
  import spacy.cli
 
103
 
104
 
105
 
106
+ med_iface = gr.Interface(fn=ner_drugs,inputs = "text",outputs=["text"],title="Drugs Named Entity Recognition").queue()
 
107
 
108
 
109