Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -348,25 +348,43 @@ additional_inputs=[
|
|
348 |
|
349 |
]
|
350 |
|
351 |
-
examples=[
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
361 |
|
|
|
362 |
gr.ChatInterface(
|
363 |
fn=run,
|
364 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
365 |
-
title="
|
366 |
examples=examples,
|
367 |
concurrency_limit=20,
|
|
|
|
|
|
|
|
|
368 |
with gr.Blocks() as iface:
|
369 |
-
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
370 |
chatbot=gr.Chatbot()
|
371 |
msg = gr.Textbox()
|
372 |
with gr.Row():
|
@@ -375,4 +393,11 @@ with gr.Blocks() as iface:
|
|
375 |
submit_b.click(run, [msg,chatbot],[msg,chatbot])
|
376 |
msg.submit(run, [msg, chatbot], [msg, chatbot])
|
377 |
iface.launch()
|
378 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
348 |
|
349 |
]
|
350 |
|
351 |
+
examples=[
|
352 |
+
["Create a simple web application using Flask", agents[0], None, None, None, None, ],
|
353 |
+
["Generate a Python script to perform a linear regression analysis", agents[2], None, None, None, None, ],
|
354 |
+
["Create a Dockerfile for a Node.js application", agents[1], None, None, None, None, ],
|
355 |
+
["Write a shell script to automate the deployment of a web application to a server", agents[3], None, None, None, None, ],
|
356 |
+
["Generate a SQL query to retrieve the top 10 most popular products by sales", agents[4], None, None, None, None, ],
|
357 |
+
["Write a Python script to generate a random password with a given length and complexity", agents[2], None, None, None, None, ],
|
358 |
+
["Create a simple game in Unity using C#", agents[0], None, None, None, None, ],
|
359 |
+
["Generate a Java program to implement a binary search algorithm", agents[2], None, None, None, None, ],
|
360 |
+
["Write a shell script to monitor the CPU usage of a server", agents[1], None, None, None, None, ],
|
361 |
+
["Create a simple web application using React and Node.js", agents[0], None, None, None, None, ],
|
362 |
+
["Generate a Python script to perform a sentiment analysis on a given text", agents[2], None, None, None, None, ],
|
363 |
+
["Write a shell script to automate the backup of a MySQL database", agents[1], None, None, None, None, ],
|
364 |
+
["Create a simple game in Unreal Engine using C++", agents[3], None, None, None, None, ],
|
365 |
+
["Generate a Java program to implement a bubble sort algorithm", agents[2], None, None, None, None, ],
|
366 |
+
["Write a shell script to monitor the memory usage of a server", agents[1], None, None, None, None, ],
|
367 |
+
["Create a simple web application using Angular and Node.js", agents[0], None, None, None, None, ],
|
368 |
+
["Generate a Python script to perform a text classification on a given dataset", agents[2], None, None, None, None, ],
|
369 |
+
["Write a shell script to automate the installation of a software package on a server", agents[1], None, None, None, None, ],
|
370 |
+
["Create a simple game in Godot using GDScript", agents[3], None, None, None, None, ],
|
371 |
+
["Generate a Java program to implement a merge sort algorithm", agents[2], None, None, None, None, ],
|
372 |
+
["Write a shell script to automate the cleanup of temporary files on a server", agents[1], None, None, None, None, ],
|
373 |
+
]
|
374 |
|
375 |
+
'''
|
376 |
gr.ChatInterface(
|
377 |
fn=run,
|
378 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
379 |
+
title="Mixtral 46.7B\nMicro-Agent\nInternet Search <br> development test",
|
380 |
examples=examples,
|
381 |
concurrency_limit=20,
|
382 |
+
with gr.Blocks() as ifacea:
|
383 |
+
gr.HTML("""TEST""")
|
384 |
+
ifacea.launch()
|
385 |
+
).launch()
|
386 |
with gr.Blocks() as iface:
|
387 |
+
#chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
388 |
chatbot=gr.Chatbot()
|
389 |
msg = gr.Textbox()
|
390 |
with gr.Row():
|
|
|
393 |
submit_b.click(run, [msg,chatbot],[msg,chatbot])
|
394 |
msg.submit(run, [msg, chatbot], [msg, chatbot])
|
395 |
iface.launch()
|
396 |
+
'''
|
397 |
+
gr.ChatInterface(
|
398 |
+
fn=run,
|
399 |
+
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
400 |
+
title="Mixtral 46.7B\nMicro-Agent\nInternet Search <br> development test",
|
401 |
+
examples=examples,
|
402 |
+
concurrency_limit=20,
|
403 |
+
).launch(show_api=False)
|