Spaces:
Runtime error
Runtime error
Karthi
commited on
Commit
·
314ea65
1
Parent(s):
5580016
Falconsai/medical_summarization
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
generator = pipeline("
|
5 |
|
6 |
def generate_response(input_text):
|
7 |
response = generator(input_text, max_length=50)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
generator = pipeline("summarization", model="Falconsai/medical_summarization")
|
5 |
|
6 |
def generate_response(input_text):
|
7 |
response = generator(input_text, max_length=50)
|