Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def translate_query(query, country):
|
|
124 |
|
125 |
translated = hf_client.text_generation(
|
126 |
prompt,
|
127 |
-
max_new_tokens=
|
128 |
temperature=0.3
|
129 |
)
|
130 |
return translated.strip()
|
@@ -133,7 +133,7 @@ def translate_query(query, country):
|
|
133 |
print(f"Translation error: {str(e)}")
|
134 |
return query
|
135 |
|
136 |
-
def search_serphouse(query, country, page=1, num_result=
|
137 |
url = "https://api.serphouse.com/serp/live"
|
138 |
|
139 |
# 검색어 번역
|
|
|
124 |
|
125 |
translated = hf_client.text_generation(
|
126 |
prompt,
|
127 |
+
max_new_tokens=250,
|
128 |
temperature=0.3
|
129 |
)
|
130 |
return translated.strip()
|
|
|
133 |
print(f"Translation error: {str(e)}")
|
134 |
return query
|
135 |
|
136 |
+
def search_serphouse(query, country, page=1, num_result=100):
|
137 |
url = "https://api.serphouse.com/serp/live"
|
138 |
|
139 |
# 검색어 번역
|