rwayz commited on
Commit
9d19186
verified
1 Parent(s): 4804662

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -13
app.py CHANGED
@@ -54,21 +54,27 @@ def chatbot_response(user_input, model_name):
54
 
55
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
56
  with gr.Row():
57
- with gr.Column(scale=1):
58
- gr.Markdown("## 鈿欙笍 Configura莽玫es")
59
- model_selector = gr.Dropdown(
60
- choices=list(MODELS.keys()),
61
- label="Escolha o Modelo",
62
- value="LLaMA 70B"
63
- )
64
  with gr.Column(scale=4):
65
- gr.Markdown("# 馃 Chatbot - API SambaNova")
66
- chatbot = gr.Chatbot(height=500)
67
- msg = gr.Textbox(placeholder="Digite sua mensagem aqui...", label="")
68
  with gr.Row():
69
- btn = gr.Button("Enviar", variant="primary")
70
- history_btn = gr.Button("Hist贸rico", variant="secondary")
71
- history_output = gr.JSON()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
  def respond(message, chat_history, model_name):
74
  response = chatbot_response(message, model_name)
 
54
 
55
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
56
  with gr.Row():
57
+ gr.Column(scale=1, min_width=100) # margem esquerda
58
+
 
 
 
 
 
59
  with gr.Column(scale=4):
 
 
 
60
  with gr.Row():
61
+ with gr.Column(scale=1):
62
+ gr.Markdown("## 鈿欙笍 Configura莽玫es")
63
+ model_selector = gr.Dropdown(
64
+ choices=list(MODELS.keys()),
65
+ label="Escolha o Modelo",
66
+ value="LLaMA 70B"
67
+ )
68
+ with gr.Column(scale=4):
69
+ gr.Markdown("# 馃 Chatbot - API SambaNova")
70
+ chatbot = gr.Chatbot(height=500)
71
+ msg = gr.Textbox(placeholder="Digite sua mensagem aqui...", label="")
72
+ with gr.Row():
73
+ btn = gr.Button("Enviar", variant="primary")
74
+ history_btn = gr.Button("Hist贸rico", variant="secondary")
75
+ history_output = gr.JSON()
76
+
77
+ gr.Column(scale=1, min_width=100) # margem direita
78
 
79
  def respond(message, chat_history, model_name):
80
  response = chatbot_response(message, model_name)