Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
4 |
pipeline_flan=pipeline(model="google/flan-t5-xl")
|
5 |
|
6 |
def generatellm(text):
|
7 |
-
output_flan =
|
8 |
return output_flan
|
9 |
|
10 |
gradio_ui= gr.Interface(
|
|
|
4 |
pipeline_flan=pipeline(model="google/flan-t5-xl")
|
5 |
|
6 |
def generatellm(text):
|
7 |
+
output_flan = pipeline_flan(text, max_length=100)[0]["generated_text"]
|
8 |
return output_flan
|
9 |
|
10 |
gradio_ui= gr.Interface(
|