Update app.py
Browse files
app.py
CHANGED
@@ -9,18 +9,19 @@ chatbot = gr.Chatbot(
|
|
9 |
avatar_images=(None, "/content/chatbot-avatar-open.png"),
|
10 |
)
|
11 |
text = gr.Textbox(placeholder="Faça uma pergunta sobre a Legislação da Unesp", submit_btn=True)
|
12 |
-
|
13 |
with gr.Blocks() as demo:
|
14 |
chat = gr.ChatInterface(
|
15 |
respond,
|
16 |
textbox=text,
|
17 |
additional_inputs=[
|
18 |
-
|
19 |
],
|
20 |
additional_inputs_accordion = 'Configurações',
|
21 |
chatbot=chatbot,
|
|
|
22 |
)
|
23 |
-
examples_list = gr.Examples(examples=examplesChatbot, inputs=text)
|
24 |
|
25 |
if __name__ == "__main__":
|
26 |
demo.launch(debug=True)
|
|
|
9 |
avatar_images=(None, "/content/chatbot-avatar-open.png"),
|
10 |
)
|
11 |
text = gr.Textbox(placeholder="Faça uma pergunta sobre a Legislação da Unesp", submit_btn=True)
|
12 |
+
dropbox = gr.Dropdown(["gpt-35-turbo", "gpt-4", "Phi-3-5-mini-instruct"], label='Modelo')
|
13 |
with gr.Blocks() as demo:
|
14 |
chat = gr.ChatInterface(
|
15 |
respond,
|
16 |
textbox=text,
|
17 |
additional_inputs=[
|
18 |
+
dropbox,
|
19 |
],
|
20 |
additional_inputs_accordion = 'Configurações',
|
21 |
chatbot=chatbot,
|
22 |
+
examples = examplesChatbot,
|
23 |
)
|
24 |
+
# examples_list = gr.Examples(examples=examplesChatbot, inputs=text)
|
25 |
|
26 |
if __name__ == "__main__":
|
27 |
demo.launch(debug=True)
|