Spaces:
Runtime error
Runtime error
Commit
·
db8ccb7
1
Parent(s):
50cc9f5
chore: Update Gradio interface configuration and remove unnecessary fields
Browse files
main.py
CHANGED
|
@@ -92,23 +92,24 @@ def generate_audio(file: bytes, openai_api_key: str) -> bytes:
|
|
| 92 |
|
| 93 |
demo = gr.Interface(
|
| 94 |
title="PDF to Podcast",
|
| 95 |
-
description="Convert any PDF document into an engaging podcast episode!",
|
| 96 |
fn=generate_audio,
|
| 97 |
inputs=[
|
| 98 |
gr.File(
|
| 99 |
-
label="
|
| 100 |
type="binary",
|
| 101 |
),
|
| 102 |
gr.Textbox(
|
| 103 |
label="OpenAI API Key",
|
| 104 |
-
placeholder="Enter your OpenAI API key here",
|
| 105 |
),
|
| 106 |
],
|
| 107 |
outputs=[
|
| 108 |
gr.Audio(format="mp3"),
|
| 109 |
],
|
|
|
|
|
|
|
| 110 |
)
|
| 111 |
|
| 112 |
demo.launch(
|
| 113 |
show_api=False,
|
|
|
|
| 114 |
)
|
|
|
|
| 92 |
|
| 93 |
demo = gr.Interface(
|
| 94 |
title="PDF to Podcast",
|
|
|
|
| 95 |
fn=generate_audio,
|
| 96 |
inputs=[
|
| 97 |
gr.File(
|
| 98 |
+
label="PDF",
|
| 99 |
type="binary",
|
| 100 |
),
|
| 101 |
gr.Textbox(
|
| 102 |
label="OpenAI API Key",
|
|
|
|
| 103 |
),
|
| 104 |
],
|
| 105 |
outputs=[
|
| 106 |
gr.Audio(format="mp3"),
|
| 107 |
],
|
| 108 |
+
allow_flagging=False,
|
| 109 |
+
clear_btn=None,
|
| 110 |
)
|
| 111 |
|
| 112 |
demo.launch(
|
| 113 |
show_api=False,
|
| 114 |
+
|
| 115 |
)
|