Spaces:
Sleeping
Sleeping
Commit
·
046591d
1
Parent(s):
a4a151a
Update app.py
Browse files
app.py
CHANGED
@@ -32,15 +32,16 @@ def main():
|
|
32 |
interface = gr.Interface(
|
33 |
fn=summarize,
|
34 |
inputs=[
|
35 |
-
gr.inputs.Textbox(label="API Key", type="password"
|
36 |
-
gr.inputs.Textbox(label="Text to Summarize",
|
37 |
],
|
38 |
-
outputs=gr.outputs.Textbox(label="Summary"
|
39 |
live=False,
|
40 |
-
title="
|
41 |
-
description="Summarize text using GPT-4
|
|
|
42 |
)
|
43 |
interface.launch()
|
44 |
|
45 |
if __name__ == "__main__":
|
46 |
-
main()
|
|
|
32 |
interface = gr.Interface(
|
33 |
fn=summarize,
|
34 |
inputs=[
|
35 |
+
gr.inputs.Textbox(label="API Key", type="password"),
|
36 |
+
gr.inputs.Textbox(label="Text to Summarize", placeholder="Enter your text here...")
|
37 |
],
|
38 |
+
outputs=gr.outputs.Textbox(label="Summary"),
|
39 |
live=False,
|
40 |
+
title="GPT-4 Summarizer",
|
41 |
+
description="Summarize text using GPT-4 with the specified prompt.",
|
42 |
+
submit_label="Submit"
|
43 |
)
|
44 |
interface.launch()
|
45 |
|
46 |
if __name__ == "__main__":
|
47 |
+
main()
|