Spaces:
Running on Zero
Running on Zero
| from gradio_client import Client | |
| import pytest | |
| def test_online_api_returns_plain_output_only(): | |
| client = Client("al1808th/macronizer") | |
| result = client.predict( | |
| text="νεανίας ἀάατός ἐστιν καὶ καλός. τὰ παῖδες τὰ καλά", | |
| model_label="mega", | |
| ) | |
| assert result == "νεα_νί^ας ἀ^ά_α^τός ἐστι^ν καὶ κα^λός. τὰ^ παῖδες τὰ^ κα_λά_" | |