Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,26 +116,26 @@ with gr.Blocks() as demo:
|
|
| 116 |
|
| 117 |
# Document Chatbot
|
| 118 |
with gr.Tab("Market Prediction"):
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 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()
|