Spaces:
Runtime error
Runtime error
abdulmatinomotoso
commited on
Commit
•
98090f0
1
Parent(s):
a3300f5
Update app.py
Browse files
app.py
CHANGED
@@ -53,9 +53,9 @@ def headline_generator_2(file):
|
|
53 |
return summary
|
54 |
|
55 |
#creating an interface for the headline generator using gradio
|
56 |
-
demo = gr.Interface(headline_generator_2, inputs=[gr.
|
57 |
title = "HEADLINE GENERATOR",
|
58 |
-
outputs=[gr.
|
59 |
theme= "darkhuggingface")
|
60 |
|
61 |
|
|
|
53 |
return summary
|
54 |
|
55 |
#creating an interface for the headline generator using gradio
|
56 |
+
demo = gr.Interface(headline_generator_2, inputs=[gr.Textbox(label="Drop your .txt file here", optional=False)],
|
57 |
title = "HEADLINE GENERATOR",
|
58 |
+
outputs=[gr.Textbox(label="Headline")],
|
59 |
theme= "darkhuggingface")
|
60 |
|
61 |
|