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