Spaces:
Sleeping
Sleeping
jhonparra18
commited on
Commit
·
01b0e2e
1
Parent(s):
cee1344
modified app logger
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
|
2 |
import gradio as gr
|
3 |
from inference import text_to_speech
|
4 |
-
|
|
|
|
|
5 |
|
6 |
with gr.Blocks() as demo:
|
7 |
gr.Markdown("""# Text-to-Speech Gustavo Petro
|
@@ -13,5 +15,5 @@ with gr.Blocks() as demo:
|
|
13 |
text_button = gr.Button("Generate")
|
14 |
|
15 |
text_button.click(text_to_speech, inputs=text_input, outputs=gr.Audio(label="Model Response"))
|
16 |
-
|
17 |
demo.launch()
|
|
|
1 |
|
2 |
import gradio as gr
|
3 |
from inference import text_to_speech
|
4 |
+
import logging
|
5 |
+
logger=logging.getLogger("app")
|
6 |
+
logger.setLevel(logging.INFO)
|
7 |
|
8 |
with gr.Blocks() as demo:
|
9 |
gr.Markdown("""# Text-to-Speech Gustavo Petro
|
|
|
15 |
text_button = gr.Button("Generate")
|
16 |
|
17 |
text_button.click(text_to_speech, inputs=text_input, outputs=gr.Audio(label="Model Response"))
|
18 |
+
logger.info("prompt: ",text_button)
|
19 |
demo.launch()
|