ShawnRu commited on
Commit
7d6cc28
·
verified ·
1 Parent(s): f4e9703

Update src/webui.py

Browse files
Files changed (1) hide show
  1. src/webui.py +5 -5
src/webui.py CHANGED
@@ -25,12 +25,12 @@ examples = [
25
  "instruction": "",
26
  "constraint": """["nationality", "country capital", "place of death", "children", "location contains", "place of birth", "place lived", "administrative division of country", "country of administrative divisions", "company", "neighborhood of", "company founders"]""",
27
  "file_path": None,
28
- "update_case": False,
29
- "truth": "",
30
  },
31
  {
32
  "task": "EE",
33
- "mode": "quick",
34
  "use_file": False,
35
  "text": "The file suggested to the user contains no software related to video streaming and simply carries the malicious payload that later compromises victim \u2019s account and sends out the deceptive messages to all victim \u2019s contacts .",
36
  "instruction": "",
@@ -65,7 +65,7 @@ examples = [
65
 
66
 
67
  def create_interface():
68
- with gr.Blocks(title="OneKE Demo", theme=gr.themes.Soft(text_size="lg")) as demo:
69
  gr.HTML("""
70
  <div style="text-align:center;">
71
  <p align="center">
@@ -245,7 +245,7 @@ def create_interface():
245
  gr.update(value="", visible=False), # text
246
  gr.update(value=None, visible=True), # file_path
247
  gr.update(value=False), # update_case
248
- gr.update(value=""), # truth
249
  gr.update(value=""),
250
  gr.update(value=""),
251
  gr.update(value="", visible=False), # error_output
 
25
  "instruction": "",
26
  "constraint": """["nationality", "country capital", "place of death", "children", "location contains", "place of birth", "place lived", "administrative division of country", "country of administrative divisions", "company", "neighborhood of", "company founders"]""",
27
  "file_path": None,
28
+ "update_case": True,
29
+ "truth": """{"relation_list": [{"head": "Guinea", "tail": "Conakry", "relation": "country capital"}]}""",
30
  },
31
  {
32
  "task": "EE",
33
+ "mode": "standard",
34
  "use_file": False,
35
  "text": "The file suggested to the user contains no software related to video streaming and simply carries the malicious payload that later compromises victim \u2019s account and sends out the deceptive messages to all victim \u2019s contacts .",
36
  "instruction": "",
 
65
 
66
 
67
  def create_interface():
68
+ with gr.Blocks(title="OneKE Demo", theme=gr.themes.Glass(text_size="lg")) as demo:
69
  gr.HTML("""
70
  <div style="text-align:center;">
71
  <p align="center">
 
245
  gr.update(value="", visible=False), # text
246
  gr.update(value=None, visible=True), # file_path
247
  gr.update(value=False), # update_case
248
+ gr.update(value="", visible=False), # truth
249
  gr.update(value=""),
250
  gr.update(value=""),
251
  gr.update(value="", visible=False), # error_output