Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ import inspect
|
|
4 |
from gradio import routes
|
5 |
from typing import List, Type
|
6 |
from google_trans_new import google_translator
|
7 |
-
import requests
|
8 |
|
9 |
-
gradio_client = GrClient(os.environ
|
10 |
translator = google_translator()
|
11 |
# Monkey patch
|
12 |
def get_types(cls_set: List[Type], component: str):
|
|
|
4 |
from gradio import routes
|
5 |
from typing import List, Type
|
6 |
from google_trans_new import google_translator
|
7 |
+
import requests, os
|
8 |
|
9 |
+
gradio_client = GrClient(os.environ.get('GrClient_url'))
|
10 |
translator = google_translator()
|
11 |
# Monkey patch
|
12 |
def get_types(cls_set: List[Type], component: str):
|