Mansurbek commited on
Commit
bf2ec42
1 Parent(s): efd855d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ examples = [
9
  def fn(text):
10
  uzroberta_v1 = pipeline("fill-mask", model="sinonimayzer/UzRoBERTa-v1")
11
  roberta_1_8_v2 = pipeline("fill-mask", model="sinonimayzer/roberta-1.8-v2")
12
- return uzroberta_v1(text)[0]['sequence'], roberta_1_8_v2(text)[0]['sequence']
13
 
14
  with gr.Blocks() as demo:
15
  with gr.Row():
 
9
  def fn(text):
10
  uzroberta_v1 = pipeline("fill-mask", model="sinonimayzer/UzRoBERTa-v1")
11
  roberta_1_8_v2 = pipeline("fill-mask", model="sinonimayzer/roberta-1.8-v2")
12
+ return uzroberta_v1(text), roberta_1_8_v2(text)
13
 
14
  with gr.Blocks() as demo:
15
  with gr.Row():