seawolf2357 commited on
Commit
c12b763
·
verified ·
1 Parent(s): 1abf4a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=100,
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=10):
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
  # 검색어 번역