seawolf2357 commited on
Commit
86bc9b7
·
verified ·
1 Parent(s): 2072a11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -110,7 +110,7 @@ def translate_query(query, country):
110
 
111
  translated = hf_client.text_generation(
112
  prompt,
113
- max_new_tokens=50,
114
  temperature=0.1
115
  )
116
  translated = translated.strip()
@@ -122,7 +122,7 @@ def translate_query(query, country):
122
  print(f"Translation error: {str(e)}")
123
  return query
124
 
125
- def search_serphouse(query, country, page=1, num_result=10):
126
  url = "https://api.serphouse.com/serp/live"
127
 
128
  translated_query = translate_query(query, country)
 
110
 
111
  translated = hf_client.text_generation(
112
  prompt,
113
+ max_new_tokens=100,
114
  temperature=0.1
115
  )
116
  translated = translated.strip()
 
122
  print(f"Translation error: {str(e)}")
123
  return query
124
 
125
+ def search_serphouse(query, country, page=1, num_result=100):
126
  url = "https://api.serphouse.com/serp/live"
127
 
128
  translated_query = translate_query(query, country)