Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ ___
|
|
68 |
|
69 |
|
70 |
def gemini_hindi_to_tamil(text):
|
71 |
-
API_URL = os.environ.get("
|
72 |
BEARER_TOKEN = get_google_token()
|
73 |
headers = {
|
74 |
"Authorization": f"Bearer {BEARER_TOKEN}",
|
@@ -112,8 +112,7 @@ def clean(result):
|
|
112 |
return text
|
113 |
|
114 |
def openai_hindi_to_tamil(text, model):
|
115 |
-
prompt =
|
116 |
-
f"Translate the following Hindi text into Tamil such that the meaning in unchanged. Return only the translated text: `{text}`. Output: "
|
117 |
|
118 |
headers = {
|
119 |
"Content-Type": "application/json",
|
|
|
68 |
|
69 |
|
70 |
def gemini_hindi_to_tamil(text):
|
71 |
+
API_URL = os.environ.get("GEMINI_API")
|
72 |
BEARER_TOKEN = get_google_token()
|
73 |
headers = {
|
74 |
"Authorization": f"Bearer {BEARER_TOKEN}",
|
|
|
112 |
return text
|
113 |
|
114 |
def openai_hindi_to_tamil(text, model):
|
115 |
+
prompt = f"Translate the following Hindi text into Tamil such that the meaning in unchanged. Return only the translated text: `{text}`. Output: "
|
|
|
116 |
|
117 |
headers = {
|
118 |
"Content-Type": "application/json",
|