Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -68,6 +68,8 @@ class DebateUI(WebUI):
|
|
68 |
self.data_history.append({agent_name: token})
|
69 |
elif state % 10 == 1:
|
70 |
# Same state. Need to add new bubble in same bubble.
|
|
|
|
|
71 |
self.data_history[-1][agent_name] += token
|
72 |
elif state % 10 == 2:
|
73 |
# New state. Need to add new bubble.
|
@@ -209,6 +211,8 @@ class DebateUI(WebUI):
|
|
209 |
default_cos_play_id = self.cache["default_cos_play_id"] if default_cos_play_id is None else default_cos_play_id
|
210 |
|
211 |
with gr.Blocks(css=gc.CSS) as demo:
|
|
|
|
|
212 |
with gr.Row():
|
213 |
with gr.Column():
|
214 |
self.text_api = gr.Textbox(
|
|
|
68 |
self.data_history.append({agent_name: token})
|
69 |
elif state % 10 == 1:
|
70 |
# Same state. Need to add new bubble in same bubble.
|
71 |
+
if len(self.data_history) == 0:
|
72 |
+
self.data_history.append({agent_name:""})
|
73 |
self.data_history[-1][agent_name] += token
|
74 |
elif state % 10 == 2:
|
75 |
# New state. Need to add new bubble.
|
|
|
211 |
default_cos_play_id = self.cache["default_cos_play_id"] if default_cos_play_id is None else default_cos_play_id
|
212 |
|
213 |
with gr.Blocks(css=gc.CSS) as demo:
|
214 |
+
gr.Markdown("""# Agents""")
|
215 |
+
gr.Markdown("""**Agents** is an open-source library/framework for building autonomous language agents.if you want to know more about **Agents**, please check our<a href="https://arxiv.org/pdf/2309.07870.pdf">📄 Paper</a> and<a href="http://www.aiwaves-agents.com/">📦 Github</a>. Here is a demo of **Agents**.""")
|
216 |
with gr.Row():
|
217 |
with gr.Column():
|
218 |
self.text_api = gr.Textbox(
|