Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,9 @@ MTMODELS = {'enro': 'BlackKakapo/opus-mt-en-ro',
|
|
9 |
'roen': 'BlackKakapo/opus-mt-ro-en',
|
10 |
'gemma': 'Gargaz/gemma-2b-romanian-better'}
|
11 |
|
12 |
-
@app.get("/
|
13 |
def index():
|
14 |
-
return {'endpoints': ['/paraphrase', '/translate'], 'mtmodels': MTMODELS}
|
15 |
|
16 |
@app.get("/paraphrase")
|
17 |
def paraphrase(text: str, model: str, operation_id="get_paraphrase", description="Paraphrase text"):
|
|
|
9 |
'roen': 'BlackKakapo/opus-mt-ro-en',
|
10 |
'gemma': 'Gargaz/gemma-2b-romanian-better'}
|
11 |
|
12 |
+
@app.get("/")
|
13 |
def index():
|
14 |
+
return {'endpoints': ['/paraphrase', '/translate', '/docs', 'https://tiberiucristianleon-fastapimt.hf.space/redoc'], 'mtmodels': MTMODELS}
|
15 |
|
16 |
@app.get("/paraphrase")
|
17 |
def paraphrase(text: str, model: str, operation_id="get_paraphrase", description="Paraphrase text"):
|