Kaushik066 commited on
Commit
95411fa
·
verified ·
1 Parent(s): 74fb9ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -21
app.py CHANGED
@@ -110,26 +110,25 @@ with gr.Blocks() as demo:
110
  gr.Markdown(about_lines)
111
 
112
  # Document Chatbot
113
- with gr.Tab("Market Prediction"):
114
- #demo = gr.ChatInterface(
115
- gr.ChatInterface(
116
- respond,
117
- type="messages",
118
- autofocus=False #,
119
- #additional_inputs=[
120
- # gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
121
- # gr.Slider(minimum=128, maximum=1024, value=512, step=128, label="Max new tokens"),
122
- # gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature"),
123
- # gr.Slider(
124
- # minimum=0.1,
125
- # maximum=1.0,
126
- # value=0.95,
127
- # step=0.05,
128
- # label="Top-p (nucleus sampling)",
129
- # ),
130
- #],
131
- )
132
-
133
 
134
  if __name__ == "__main__":
135
- demo.launch()
 
110
  gr.Markdown(about_lines)
111
 
112
  # Document Chatbot
113
+ with gr.Tab("Market Prediction"):
114
+ #demo = gr.ChatInterface(
115
+ gr.ChatInterface(
116
+ respond,
117
+ type="messages",
118
+ autofocus=False #,
119
+ #additional_inputs=[
120
+ # gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
121
+ # gr.Slider(minimum=128, maximum=1024, value=512, step=128, label="Max new tokens"),
122
+ # gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature"),
123
+ # gr.Slider(
124
+ # minimum=0.1,
125
+ # maximum=1.0,
126
+ # value=0.95,
127
+ # step=0.05,
128
+ # label="Top-p (nucleus sampling)",
129
+ # ),
130
+ #],
131
+ )
 
132
 
133
  if __name__ == "__main__":
134
+ demo.launch()