Karthi commited on
Commit
a005d28
1 Parent(s): 401e3df
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ generator = pipeline("summarization", model="Falconsai/medical_summarization")
5
 
6
  def generate_response(input_text):
7
  response = generator(input_text, max_length=50)
8
- return response[0]['generated_text']
9
 
10
  interface = gr.Interface(fn=generate_response, inputs="text", outputs="text")
11
  interface.launch(share=True)
 
5
 
6
  def generate_response(input_text):
7
  response = generator(input_text, max_length=50)
8
+ return response[0]['generated_text1']
9
 
10
  interface = gr.Interface(fn=generate_response, inputs="text", outputs="text")
11
  interface.launch(share=True)