jayur commited on
Commit
1d39c8d
·
verified ·
1 Parent(s): 966f45e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def lingua_stats(language:str)->str: #it's import to specify the return type
24
  lang_spkrs = float(agent.run(f"How many people in the world speak {language} as a float? Provide the answer as a single number"))
25
  print(world_population, lang_spkrs)
26
  lang_spkrs_pct = (lang_spkrs/world_population)*100
27
- return f"The percentage of {language} speaking population in the world is %3.3f: ({str(lang_spkrs_pct)})"
28
  except Exception as e:
29
  return f"Error: Search failed for {language}"
30
 
 
24
  lang_spkrs = float(agent.run(f"How many people in the world speak {language} as a float? Provide the answer as a single number"))
25
  print(world_population, lang_spkrs)
26
  lang_spkrs_pct = (lang_spkrs/world_population)*100
27
+ return f"The percentage of {language} speaking population in the world is %3.9f: ({str(lang_spkrs_pct)})"
28
  except Exception as e:
29
  return f"Error: Search failed for {language}"
30