changxin commited on
Commit
630c584
·
1 Parent(s): d67d668

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,11 +22,11 @@ def inference(text: str):
22
  synthesizer.save_wav(wavs, fp)
23
  return fp.name
24
 
25
- headers= {"Content-Type": "application/json"}
26
- url="https://m-formatter.azurewebsites.net/api/v2"
27
  def fx_m(s:str):
 
 
28
  data={'code':s,'resultType':'text'}
29
- respose=requests.post(url, json=data, headers)
30
  return respose.text
31
 
32
  demo=gr.Blocks()
 
22
  synthesizer.save_wav(wavs, fp)
23
  return fp.name
24
 
 
 
25
  def fx_m(s:str):
26
+ headers= {"Content-Type": "application/json"}
27
+ url="https://m-formatter.azurewebsites.net/api/v2"
28
  data={'code':s,'resultType':'text'}
29
+ respose=requests.post(url,json=data,headers=headers)
30
  return respose.text
31
 
32
  demo=gr.Blocks()