Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def call_search(purpose, task, history, directory, action_input):
|
|
122 |
def call_main(purpose, task, history, directory, action_input):
|
123 |
resp = run_gpt(
|
124 |
ACTION_PROMPT,
|
125 |
-
stop_tokens=["observation:", "task:", "action:","though:"
|
126 |
max_tokens=2096,
|
127 |
purpose=purpose,
|
128 |
task=task,
|
@@ -259,7 +259,7 @@ agents =[
|
|
259 |
"PYTHON_CODE_DEV"
|
260 |
]
|
261 |
def generate(
|
262 |
-
prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.
|
263 |
):
|
264 |
seed = random.randint(1,1111111111111111)
|
265 |
|
@@ -358,11 +358,10 @@ examples=[["What are the biggest news stories today?", None, None, None, None, N
|
|
358 |
["What are some unique features of Rust that make it stand out compared to other systems programming languages like C++?", None, None, None, None, None,],
|
359 |
]
|
360 |
|
361 |
-
|
362 |
gr.ChatInterface(
|
363 |
fn=run,
|
364 |
-
|
365 |
-
title="Mixtral 46.7B\nMicro-Agent\nInternet Search <br> development test",
|
366 |
examples=examples,
|
367 |
concurrency_limit=20,
|
368 |
with gr.Blocks() as ifacea:
|
@@ -370,7 +369,7 @@ with gr.Blocks() as ifacea:
|
|
370 |
ifacea.launch()
|
371 |
).launch()
|
372 |
with gr.Blocks() as iface:
|
373 |
-
|
374 |
chatbot=gr.Chatbot()
|
375 |
msg = gr.Textbox()
|
376 |
with gr.Row():
|
@@ -378,12 +377,4 @@ with gr.Blocks() as iface:
|
|
378 |
clear = gr.ClearButton([msg, chatbot])
|
379 |
submit_b.click(run, [msg,chatbot],[msg,chatbot])
|
380 |
msg.submit(run, [msg, chatbot], [msg, chatbot])
|
381 |
-
iface.launch()
|
382 |
-
'''
|
383 |
-
gr.ChatInterface(
|
384 |
-
fn=run,
|
385 |
-
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, super_intelligence=True, layout="panel"),
|
386 |
-
title="Fragmixt\nAgents With Agents\nSurf With a Purpose <br>",
|
387 |
-
examples=examples,
|
388 |
-
concurrency_limit=50,
|
389 |
-
).launch(show_api=False)
|
|
|
122 |
def call_main(purpose, task, history, directory, action_input):
|
123 |
resp = run_gpt(
|
124 |
ACTION_PROMPT,
|
125 |
+
stop_tokens=["observation:", "task:", "action:","though:"],
|
126 |
max_tokens=2096,
|
127 |
purpose=purpose,
|
128 |
task=task,
|
|
|
259 |
"PYTHON_CODE_DEV"
|
260 |
]
|
261 |
def generate(
|
262 |
+
prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.7,
|
263 |
):
|
264 |
seed = random.randint(1,1111111111111111)
|
265 |
|
|
|
358 |
["What are some unique features of Rust that make it stand out compared to other systems programming languages like C++?", None, None, None, None, None,],
|
359 |
]
|
360 |
|
361 |
+
|
362 |
gr.ChatInterface(
|
363 |
fn=run,
|
364 |
+
title="Fragmixt\nAgents With Agents\nSurf With a Purpose\n"
|
|
|
365 |
examples=examples,
|
366 |
concurrency_limit=20,
|
367 |
with gr.Blocks() as ifacea:
|
|
|
369 |
ifacea.launch()
|
370 |
).launch()
|
371 |
with gr.Blocks() as iface:
|
372 |
+
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
373 |
chatbot=gr.Chatbot()
|
374 |
msg = gr.Textbox()
|
375 |
with gr.Row():
|
|
|
377 |
clear = gr.ClearButton([msg, chatbot])
|
378 |
submit_b.click(run, [msg,chatbot],[msg,chatbot])
|
379 |
msg.submit(run, [msg, chatbot], [msg, chatbot])
|
380 |
+
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|