Karzan commited on
Commit
e5b11bc
·
verified ·
1 Parent(s): 137d101

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
2
  import sys
3
  import os
4
  from gradio_client import Client
5
- HF_TOKEN = os.getenv('HF_TOKEN')
 
6
 
7
 
8
  examples=[
@@ -14,7 +15,7 @@ examples=[
14
  def tts(text: str):
15
  # synthesize
16
  try:
17
- client = Client("Karzan/Barnammer-TTS",hf_token=HF_TOKEN)
18
  result = client.predict(
19
  text=text,
20
  api_name="/predict"
 
2
  import sys
3
  import os
4
  from gradio_client import Client
5
+ HF_TOKEN = os.getenv('HF_TOKEN')
6
+ API_URL = os.getenv('API_URL')
7
 
8
 
9
  examples=[
 
15
  def tts(text: str):
16
  # synthesize
17
  try:
18
+ client = Client(API_URL,hf_token=HF_TOKEN)
19
  result = client.predict(
20
  text=text,
21
  api_name="/predict"