Mansurbek commited on
Commit
b2d2f32
1 Parent(s): ef3e238

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -12,12 +12,11 @@ def fn(text):
12
  uzroberta_v1(text),
13
  roberta_1_8_v2(text)
14
  ]
15
- demo = gr.load(
16
  fn,
17
  inputs=gr.Textbox(lines=5, max_lines=6, label="Input"),
18
  outputs=[gr.Label(label="UzRoBERTa-v1"), gr.Label(label="roberta-1.8-v2")],
19
  examples=examples,
20
- src="models",
21
  )
22
 
23
  # with gr.Blocks() as demo:
 
12
  uzroberta_v1(text),
13
  roberta_1_8_v2(text)
14
  ]
15
+ demo = gr.Interface(
16
  fn,
17
  inputs=gr.Textbox(lines=5, max_lines=6, label="Input"),
18
  outputs=[gr.Label(label="UzRoBERTa-v1"), gr.Label(label="roberta-1.8-v2")],
19
  examples=examples,
 
20
  )
21
 
22
  # with gr.Blocks() as demo: