Spaces:
Running
Running
Johnny Lee
commited on
Commit
·
30ba009
1
Parent(s):
75219b0
updates
Browse files- app.py +4 -6
- templates.json +2 -2
app.py
CHANGED
@@ -152,7 +152,7 @@ poll_questions = PollQuestions.from_json_file("templates.json")
|
|
152 |
|
153 |
|
154 |
def reset_textbox():
|
155 |
-
return
|
156 |
|
157 |
|
158 |
def auth(username, password):
|
@@ -546,12 +546,12 @@ with gr.Blocks(
|
|
546 |
title=config.app_title,
|
547 |
) as demo:
|
548 |
state = gr.State()
|
549 |
-
gr.Markdown(f"""
|
550 |
with gr.Tab("Chatbot"):
|
551 |
with gr.Row():
|
552 |
chatbot_mode = gr.Radio(
|
553 |
label="Mode",
|
554 |
-
choices=[ChatbotMode.DEBATE_PARTNER],
|
555 |
value=ChatbotMode.DEFAULT,
|
556 |
)
|
557 |
case_input = gr.Dropdown(
|
@@ -593,6 +593,4 @@ with gr.Blocks(
|
|
593 |
chat_submit_button.click(**clear_chatbot_messages_params)
|
594 |
input_message.submit(**clear_chatbot_messages_params)
|
595 |
|
596 |
-
demo.queue(max_size=99, concurrency_count=
|
597 |
-
debug=True, auth=auth
|
598 |
-
)
|
|
|
152 |
|
153 |
|
154 |
def reset_textbox():
|
155 |
+
return (None,) * 3
|
156 |
|
157 |
|
158 |
def auth(username, password):
|
|
|
546 |
title=config.app_title,
|
547 |
) as demo:
|
548 |
state = gr.State()
|
549 |
+
gr.Markdown(f"""## {config.app_title}""")
|
550 |
with gr.Tab("Chatbot"):
|
551 |
with gr.Row():
|
552 |
chatbot_mode = gr.Radio(
|
553 |
label="Mode",
|
554 |
+
choices=[ChatbotMode.DEBATE_PARTNER.value],
|
555 |
value=ChatbotMode.DEFAULT,
|
556 |
)
|
557 |
case_input = gr.Dropdown(
|
|
|
593 |
chat_submit_button.click(**clear_chatbot_messages_params)
|
594 |
input_message.submit(**clear_chatbot_messages_params)
|
595 |
|
596 |
+
demo.queue(max_size=99, concurrency_count=56, api_open=False).launch(auth=auth)
|
|
|
|
templates.json
CHANGED
@@ -41,7 +41,7 @@
|
|
41 |
},
|
42 |
{
|
43 |
"name": "Hubspot",
|
44 |
-
"template": "In which phases of the sales funnel would chatbots do better than human representatives?\n1. Top of Funnel\n2. Middle of the Funnel\n3. Bottom of the Funnel\nIn implementing a chatbot, should it disclose to a customer that they are chatting with a bot?\n1. Yes, almost always\n2. It depends on the circumstances\n3. No, almost never"
|
45 |
},
|
46 |
{
|
47 |
"name": "Mastercard",
|
@@ -49,7 +49,7 @@
|
|
49 |
},
|
50 |
{
|
51 |
"name": "Autonomous Vehicles",
|
52 |
-
"template": "Suppose you are a general partner of a VC/PE firm that has a fund set aside for futurist and frontier technologies. Within the autonomous vehicles space, which of the following rivals discussed in the case would you invest in?\n1. Tesla\n2. GM and Cruise\n3. Waymo\n4. Motional\nWhen it comes to programming decision rules for ethical dilemmas that Autonomous Vehicles will encounter (like the Trolley Problem described in the case), which stakeholder's opinion should matter the most?\n1. Social Scientists (e.g., professors of philosophy, sociology, etc.)\n2. Technology Specialists (e.g., engineers)\n3. Policy-makers and regulators (e.g., government agencies)\n4. The general public (e.g., by popular vote)\n5. The owner (e.g., shareholders) and managers of AV car companies"
|
53 |
},
|
54 |
{
|
55 |
"name": "Apple Privacy",
|
|
|
41 |
},
|
42 |
{
|
43 |
"name": "Hubspot",
|
44 |
+
"template": "In which phases of the sales funnel would chatbots do better than human representatives?\n1. Top of Funnel\n2. Middle of the Funnel\n3. Bottom of the Funnel\nIn implementing a chatbot, should it disclose to a customer that they are chatting with a bot?\n1. Yes, almost always\n2. It depends on the circumstances\n3. No, almost never\n Please instruct the student to only pick 1 question."
|
45 |
},
|
46 |
{
|
47 |
"name": "Mastercard",
|
|
|
49 |
},
|
50 |
{
|
51 |
"name": "Autonomous Vehicles",
|
52 |
+
"template": "Suppose you are a general partner of a VC/PE firm that has a fund set aside for futurist and frontier technologies. Within the autonomous vehicles space, which of the following rivals discussed in the case would you invest in?\n1. Tesla\n2. GM and Cruise\n3. Waymo\n4. Motional\nWhen it comes to programming decision rules for ethical dilemmas that Autonomous Vehicles will encounter (like the Trolley Problem described in the case), which stakeholder's opinion should matter the most?\n1. Social Scientists (e.g., professors of philosophy, sociology, etc.)\n2. Technology Specialists (e.g., engineers)\n3. Policy-makers and regulators (e.g., government agencies)\n4. The general public (e.g., by popular vote)\n5. The owner (e.g., shareholders) and managers of AV car companies\n Please instruct the student to only pick 1 question."
|
53 |
},
|
54 |
{
|
55 |
"name": "Apple Privacy",
|