Kaushik066 commited on
Commit
b212fdf
·
verified ·
1 Parent(s): e8d0df0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -20
app.py CHANGED
@@ -116,26 +116,26 @@ with gr.Blocks() as demo:
116
 
117
  # Document Chatbot
118
  with gr.Tab("Market Prediction"):
119
- #demo = gr.ChatInterface(
120
- gr.ChatInterface(
121
- respond,
122
- fill_width=True,
123
- fill_height=True,
124
- type="messages",
125
- autofocus=False #,
126
- #additional_inputs=[
127
- # gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
128
- # gr.Slider(minimum=128, maximum=1024, value=512, step=128, label="Max new tokens"),
129
- # gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature"),
130
- # gr.Slider(
131
- # minimum=0.1,
132
- # maximum=1.0,
133
- # value=0.95,
134
- # step=0.05,
135
- # label="Top-p (nucleus sampling)",
136
- # ),
137
- #],
138
- )
139
 
140
  if __name__ == "__main__":
141
  demo.launch()
 
116
 
117
  # Document Chatbot
118
  with gr.Tab("Market Prediction"):
119
+ with gr.Row(variant="panel", scale=2):
120
+ gr.ChatInterface(
121
+ respond,
122
+ fill_width=True,
123
+ fill_height=True,
124
+ type="messages",
125
+ autofocus=False #,
126
+ #additional_inputs=[
127
+ # gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
128
+ # gr.Slider(minimum=128, maximum=1024, value=512, step=128, label="Max new tokens"),
129
+ # gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature"),
130
+ # gr.Slider(
131
+ # minimum=0.1,
132
+ # maximum=1.0,
133
+ # value=0.95,
134
+ # step=0.05,
135
+ # label="Top-p (nucleus sampling)",
136
+ # ),
137
+ #],
138
+ )
139
 
140
  if __name__ == "__main__":
141
  demo.launch()