ShaohanTian commited on
Commit
e17b63e
·
1 Parent(s): 1223322
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -2,8 +2,6 @@ import gradio as gr
2
 
3
  title = "SteelBERT"
4
 
5
- description = "Gradio Demo for SteelBERT. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
6
-
7
  examples = [
8
  ['Paris is the [MASK] of France.', 'SteelBERT'],
9
  ["A composite steel plate for marine construction was fabricated using 316L stainless steel.", 'SteelBERT'],
@@ -35,9 +33,8 @@ def inference(inputtext, model):
35
  else:
36
  return "Model not available."
37
 
38
- with gr.Blocks(title=title, description=description) as demo:
39
  gr.Markdown(f"# {title}")
40
- gr.Markdown(description)
41
 
42
  context = gr.Textbox(label="Context", lines=10)
43
  model = gr.Dropdown(choices=["SteelBERT", "bert-base-uncased"], label="Model")
 
2
 
3
  title = "SteelBERT"
4
 
 
 
5
  examples = [
6
  ['Paris is the [MASK] of France.', 'SteelBERT'],
7
  ["A composite steel plate for marine construction was fabricated using 316L stainless steel.", 'SteelBERT'],
 
33
  else:
34
  return "Model not available."
35
 
36
+ with gr.Blocks(title=title) as demo:
37
  gr.Markdown(f"# {title}")
 
38
 
39
  context = gr.Textbox(label="Context", lines=10)
40
  model = gr.Dropdown(choices=["SteelBERT", "bert-base-uncased"], label="Model")