Spaces:
Runtime error
Runtime error
Karthi
commited on
Commit
•
a005d28
1
Parent(s):
401e3df
HI
Browse files
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]['
|
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)
|