Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def clean_text(text):
|
|
21 |
return text
|
22 |
|
23 |
|
24 |
-
model_name = "chinhon/
|
25 |
|
26 |
def headline_writer(text):
|
27 |
input_text = clean_text(text)
|
@@ -59,4 +59,4 @@ gradio_ui = gr.Interface(
|
|
59 |
theme="darkdefault"
|
60 |
)
|
61 |
|
62 |
-
gradio_ui.launch(
|
|
|
21 |
return text
|
22 |
|
23 |
|
24 |
+
model_name = "chinhon/pegasus-newsroom-headline_writer_oct22"
|
25 |
|
26 |
def headline_writer(text):
|
27 |
input_text = clean_text(text)
|
|
|
59 |
theme="darkdefault"
|
60 |
)
|
61 |
|
62 |
+
gradio_ui.queue().launch()
|