Spaces:
Running
Running
salomonsky
commited on
Commit
•
6c6a21d
1
Parent(s):
eaf80ac
Update app.py
Browse files
app.py
CHANGED
@@ -2,12 +2,13 @@ import os
|
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import random
|
5 |
-
from huggingface_hub import AsyncInferenceClient
|
6 |
from translatepy import Translator
|
7 |
import requests
|
8 |
import re
|
9 |
import asyncio
|
10 |
from PIL import Image
|
|
|
11 |
|
12 |
translator = Translator()
|
13 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
|
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import random
|
5 |
+
from huggingface_hub import AsyncInferenceClient, login
|
6 |
from translatepy import Translator
|
7 |
import requests
|
8 |
import re
|
9 |
import asyncio
|
10 |
from PIL import Image
|
11 |
+
from gradio_client import Client, handle_file
|
12 |
|
13 |
translator = Translator()
|
14 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|