imomayiz commited on
Commit
8a9d8b4
Β·
verified Β·
1 Parent(s): 98df23f

fix: return generated text of json if none

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def respond(english_text):
18
  except KeyError:
19
  output = response
20
 
21
- return response
22
 
23
  app = gr.Interface(fn=respond, inputs="text", outputs="text", title="Terjman-Nano πŸ‘¨β€πŸ’» 😊", description="Translate English text to Moroccan Darija using our smallest model (77M) πŸ€—")
24
 
 
18
  except KeyError:
19
  output = response
20
 
21
+ return output
22
 
23
  app = gr.Interface(fn=respond, inputs="text", outputs="text", title="Terjman-Nano πŸ‘¨β€πŸ’» 😊", description="Translate English text to Moroccan Darija using our smallest model (77M) πŸ€—")
24