acecalisto3 commited on
Commit
7dfabc2
·
verified ·
1 Parent(s): 3bf8d5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -13
app.py CHANGED
@@ -348,25 +348,43 @@ additional_inputs=[
348
 
349
  ]
350
 
351
- examples=[["What are the biggest news stories today?", None, None, None, None, None, ],
352
- ["When is the next full moon?", None, None, None, None, None, ],
353
- ["I'm planning a vacation to Japan. Can you suggest a one-week itinerary including must-visit places and local cuisines to try?", None, None, None, None, None, ],
354
- ["Can you write a short story about a time-traveling detective who solves historical mysteries?", None, None, None, None, None,],
355
- ["I'm trying to learn French. Can you provide some common phrases that would be useful for a beginner, along with their pronunciations?", None, None, None, None, None,],
356
- ["I have chicken, rice, and bell peppers in my kitchen. Can you suggest an easy recipe I can make with these ingredients?", None, None, None, None, None,],
357
- ["Can you explain how the QuickSort algorithm works and provide a Python implementation?", None, None, None, None, None,],
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
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
365
- title="""Mixtral 46.7B\nMicro-Agent\nInternet Search <br> development test""",
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)