Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,6 @@ import gradio as gr
|
|
2 |
import hashlib
|
3 |
import tempfile
|
4 |
import requests
|
5 |
-
from schedule import every,repeat,run_pending
|
6 |
-
import time
|
7 |
import pandas as pd
|
8 |
from TTS.utils.manage import ModelManager
|
9 |
from TTS.utils.synthesizer import Synthesizer
|
@@ -52,12 +50,6 @@ def fx_dd(s:str):
|
|
52 |
data={'msgtype':'text','text':{'title': '吹牛逼',"content": s}, 'at': {'atMobiles': [], 'isAtAll': True}}
|
53 |
response=requests.post(url,json=data,headers=headers)
|
54 |
return response.text
|
55 |
-
'''
|
56 |
-
every(2).minutes.do(fx_dd,s='传参数测试')
|
57 |
-
while True:
|
58 |
-
run_pending()
|
59 |
-
time.sleep(1)
|
60 |
-
'''
|
61 |
|
62 |
demo=gr.Blocks()
|
63 |
with demo:
|
|
|
2 |
import hashlib
|
3 |
import tempfile
|
4 |
import requests
|
|
|
|
|
5 |
import pandas as pd
|
6 |
from TTS.utils.manage import ModelManager
|
7 |
from TTS.utils.synthesizer import Synthesizer
|
|
|
50 |
data={'msgtype':'text','text':{'title': '吹牛逼',"content": s}, 'at': {'atMobiles': [], 'isAtAll': True}}
|
51 |
response=requests.post(url,json=data,headers=headers)
|
52 |
return response.text
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
demo=gr.Blocks()
|
55 |
with demo:
|