Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ chatbot = gr.Chatbot(
|
|
9 |
avatar_images=(None, "/imgs/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,
|
@@ -21,7 +21,7 @@ with gr.Blocks() as demo:
|
|
21 |
chatbot=chatbot,
|
22 |
# examples = examplesChatbot,
|
23 |
)
|
24 |
-
|
25 |
|
26 |
if __name__ == "__main__":
|
27 |
demo.launch(debug=True)
|
|
|
9 |
avatar_images=(None, "/imgs/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"], value="gpt-35-turbo" label='Modelo')
|
13 |
with gr.Blocks() as demo:
|
14 |
chat = gr.ChatInterface(
|
15 |
respond,
|
|
|
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)
|