TiberiuCristianLeon commited on
Commit
2440a8a
·
verified ·
1 Parent(s): 037dcd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("/endpoints")
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"):