Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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 : {lang_spkrs_pct:3.9f}%"
|
28 |
except Exception as e:
|
29 |
return f"Error: Search failed for {language}"
|
30 |
|