diginoron commited on
Commit
273a16a
·
verified ·
1 Parent(s): 864a041

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  import pandas as pd
4
  import comtradeapicall
5
  from huggingface_hub import InferenceClient
6
- from googletrans import Translator # اضافه کردن کتابخانه ترجمه
7
 
8
  # کلید COMTRADE
9
  subscription_key = os.getenv("COMTRADE_API_KEY", "")
@@ -11,7 +11,7 @@ subscription_key = os.getenv("COMTRADE_API_KEY", "")
11
  hf_token = os.getenv("HF_API_TOKEN")
12
 
13
  client = InferenceClient(token=hf_token)
14
- translator = Translator() # ایجاد یک نمونه از مترجم
15
 
16
  def get_importers(hs_code: str, year: str, month: str):
17
  period = f"{year}{int(month):02d}"
 
3
  import pandas as pd
4
  import comtradeapicall
5
  from huggingface_hub import InferenceClient
6
+ from googletrans import Translator
7
 
8
  # کلید COMTRADE
9
  subscription_key = os.getenv("COMTRADE_API_KEY", "")
 
11
  hf_token = os.getenv("HF_API_TOKEN")
12
 
13
  client = InferenceClient(token=hf_token)
14
+ translator = Translator()
15
 
16
  def get_importers(hs_code: str, year: str, month: str):
17
  period = f"{year}{int(month):02d}"