AlekseyKorshuk commited on
Commit
aaf2639
Β·
1 Parent(s): 34f0523
Files changed (3) hide show
  1. app.py +3 -3
  2. config.py +0 -1
  3. content.py +2 -2
app.py CHANGED
@@ -29,7 +29,7 @@ def main():
29
  with gr.TabItem("Leaderboard"):
30
  gr.Markdown("Soon...")
31
 
32
- demo.queue(concurrency_count=config.concurrency_count).launch()
33
 
34
 
35
  def render_sign_up(records):
@@ -39,7 +39,7 @@ def render_sign_up(records):
39
  status = gr.Textbox(label="Status")
40
  btn.click(
41
  fn=partial(signup, records=records),
42
- inputs=[username, password], outputs=status, api_name="signup")
43
 
44
 
45
  def render_request_data(records):
@@ -49,7 +49,7 @@ def render_request_data(records):
49
  status = gr.Textbox(label="Status")
50
  btn.click(
51
  fn=partial(request_data, records=records),
52
- inputs=[username, password], outputs=status, api_name="request")
53
 
54
 
55
  def init():
 
29
  with gr.TabItem("Leaderboard"):
30
  gr.Markdown("Soon...")
31
 
32
+ demo.queue(concurrency_count=config.concurrency_count).launch(show_api=False)
33
 
34
 
35
  def render_sign_up(records):
 
39
  status = gr.Textbox(label="Status")
40
  btn.click(
41
  fn=partial(signup, records=records),
42
+ inputs=[username, password], outputs=status)
43
 
44
 
45
  def render_request_data(records):
 
49
  status = gr.Textbox(label="Status")
50
  btn.click(
51
  fn=partial(request_data, records=records),
52
+ inputs=[username, password], outputs=status)
53
 
54
 
55
  def init():
config.py CHANGED
@@ -6,4 +6,3 @@ api_key = os.environ.get("ARGILLA_API_KEY")
6
  hf_dataset_path = os.environ.get("HF_DATASET_PATH")
7
  hf_token = os.environ.get("HF_TOKEN")
8
  concurrency_count = int(os.environ.get("CONCURRENCY_COUNT", 10))
9
-
 
6
  hf_dataset_path = os.environ.get("HF_DATASET_PATH")
7
  hf_token = os.environ.get("HF_TOKEN")
8
  concurrency_count = int(os.environ.get("CONCURRENCY_COUNT", 10))
 
content.py CHANGED
@@ -37,8 +37,8 @@ Your mission is to continue this conversation, replying as the character would.
37
  """
38
 
39
  description = f"""This is the community effort with the idea to produce high quality human-written dataset for Role-Play.
40
- You will be assigned with a list of samples. Each samples consists of two parts: character description and conversation history between character and human. Your task is to continue conversation by replying as character would.
41
- This is Stage 1 of crowd annotation, next stage will imply ranking responses from the first stage.
42
 
43
  ## Why participate?
44
 
 
37
  """
38
 
39
  description = f"""This is the community effort with the idea to produce high quality human-written dataset for Role-Play.
40
+ You will be assigned with a list of samples. Each sample consists of two parts: character description and conversation history between character and human. Your task is to continue conversation by replying as character would.
41
+ This is the first stage of crowd annotation, next stage will imply ranking responses from the first stage.
42
 
43
  ## Why participate?
44