johann22 commited on
Commit
f791e50
1 Parent(s): 8d10899

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -9
app.py CHANGED
@@ -87,7 +87,10 @@ additional_inputs=[
87
  info="Penalize repeated tokens",
88
  )
89
  ]
90
-
 
 
 
91
  examples=[["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, ],
92
  ["Can you write a short story about a time-traveling detective who solves historical mysteries?", None, None, None, None, None,],
93
  ["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,],
@@ -96,12 +99,15 @@ examples=[["I'm planning a vacation to Japan. Can you suggest a one-week itinera
96
  ["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,],
97
  ]
98
 
99
- gr.ChatInterface(
100
- fn=generate,
101
- chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
102
- additional_inputs=additional_inputs,
103
- title="Mixtral 46.7B",
104
- examples=examples,
105
- concurrency_limit=20,
106
- ).launch(show_api=False)
 
 
 
107
 
 
87
  info="Penalize repeated tokens",
88
  )
89
  ]
90
+ agents =[
91
+ WEB_DEV,
92
+ AI_DEV_SYSTEM_PROMPT,
93
+ ]
94
  examples=[["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, ],
95
  ["Can you write a short story about a time-traveling detective who solves historical mysteries?", None, None, None, None, None,],
96
  ["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,],
 
99
  ["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,],
100
  ]
101
 
102
+ with gr.Blocks() as iface:
103
+ gr.ChatInterface(
104
+ fn=generate,
105
+ chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
106
+ additional_inputs=additional_inputs,
107
+ title="Mixtral 46.7B",
108
+ examples=examples,
109
+ concurrency_limit=20,
110
+ )
111
+ ag = gr.Dropdown(choices=[s for s in agents])
112
+ iface.launch(show_api=False)
113