awacke1 commited on
Commit
20175be
1 Parent(s): 76a40b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -1,14 +1,14 @@
1
  import gradio as gr
2
- import streamlit as st
3
  import logging
4
  import sys
5
- import firebase_admin
6
  import tempfile
7
  import numpy as np
8
  import datetime
9
 
10
- from firebase_admin import credentials
11
- from firebase_admin import firestore
 
12
 
13
  #from transformers import pipeline
14
  from transformers import pipeline, AutoModelForCTC, Wav2Vec2Processor, Wav2Vec2ProcessorWithLM
@@ -19,8 +19,6 @@ from TTS.utils.manage import ModelManager
19
  from TTS.utils.synthesizer import Synthesizer
20
 
21
 
22
-
23
-
24
  logging.basicConfig(
25
  format="%(asctime)s - %(levelname)s - %(name)s - %(message)s",
26
  datefmt="%m/%d/%Y %H:%M:%S",
@@ -154,7 +152,7 @@ gr.Interface(
154
  .result_item_success {background-color:mediumaquamarine;color:white;align-self:start}
155
  .result_item_error {background-color:#ff7070;color:white;align-self:start}
156
  """,
157
- allow_screenshot=True,
158
  allow_flagging="never",
159
  theme="grass"
160
  ).launch(enable_queue=True)
 
1
  import gradio as gr
2
+ #import streamlit as st
3
  import logging
4
  import sys
 
5
  import tempfile
6
  import numpy as np
7
  import datetime
8
 
9
+ #import firebase_admin
10
+ #from firebase_admin import credentials
11
+ #from firebase_admin import firestore
12
 
13
  #from transformers import pipeline
14
  from transformers import pipeline, AutoModelForCTC, Wav2Vec2Processor, Wav2Vec2ProcessorWithLM
 
19
  from TTS.utils.synthesizer import Synthesizer
20
 
21
 
 
 
22
  logging.basicConfig(
23
  format="%(asctime)s - %(levelname)s - %(name)s - %(message)s",
24
  datefmt="%m/%d/%Y %H:%M:%S",
 
152
  .result_item_success {background-color:mediumaquamarine;color:white;align-self:start}
153
  .result_item_error {background-color:#ff7070;color:white;align-self:start}
154
  """,
155
+ allow_screenshot=False,
156
  allow_flagging="never",
157
  theme="grass"
158
  ).launch(enable_queue=True)