Spaces:
Sleeping
Sleeping
Set fill_height and added scale in gr.Blocks and gr.ChatInterface
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ def chat_response(message, history, max_tokens, temperature, top_p):
|
|
125 |
bot_message = respond(message, history, max_tokens, temperature, top_p)
|
126 |
return bot_message
|
127 |
|
128 |
-
with gr.Blocks() as demo:
|
129 |
info_text_component.render()
|
130 |
|
131 |
with gr.Accordion("Advanced Options", open=False):
|
@@ -138,6 +138,7 @@ with gr.Blocks() as demo:
|
|
138 |
additional_inputs=[max_tokens_slider, temperature_slider, top_p_slider],
|
139 |
#title="RAG Chatbot",
|
140 |
#description="Ask me anything about the documents in my knowledge base!",
|
|
|
141 |
examples=[
|
142 |
["How to do great work by Paul Graham?", 512, 0.7, 0.95],
|
143 |
["What are the key points in the article about doing great work?", 512, 0.7, 0.95],
|
|
|
125 |
bot_message = respond(message, history, max_tokens, temperature, top_p)
|
126 |
return bot_message
|
127 |
|
128 |
+
with gr.Blocks(fill_height=True) as demo:
|
129 |
info_text_component.render()
|
130 |
|
131 |
with gr.Accordion("Advanced Options", open=False):
|
|
|
138 |
additional_inputs=[max_tokens_slider, temperature_slider, top_p_slider],
|
139 |
#title="RAG Chatbot",
|
140 |
#description="Ask me anything about the documents in my knowledge base!",
|
141 |
+
scale=1,
|
142 |
examples=[
|
143 |
["How to do great work by Paul Graham?", 512, 0.7, 0.95],
|
144 |
["What are the key points in the article about doing great work?", 512, 0.7, 0.95],
|