Spaces:
Running
Running
Update app.py
Browse files
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}"
|