Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ MODEL_NAME_OR_PATH = 'StevenChen16/llama3-8b-Lawyer'
|
|
18 |
|
19 |
DESCRIPTION = '''
|
20 |
<div style="display: flex; align-items: center; justify-content: center; text-align: center;">
|
21 |
-
<img src="https://wealthwizards.org/upload/logo_black_no_background_square.png" alt="Wealth Wizards Logo" style="width:
|
22 |
<div style="display: inline-block; text-align: left;">
|
23 |
<h1 style="font-size: 36px; margin: 0;">AI Lawyer</h1>
|
24 |
<p style="font-size: 15px; margin: 0;">wealth wizards</p>
|
@@ -152,26 +152,10 @@ chatbot=gr.Chatbot(height=450, placeholder=PLACEHOLDER, label='Gradio ChatInterf
|
|
152 |
with gr.Blocks(fill_height=True, css=css) as demo:
|
153 |
|
154 |
gr.Markdown(DESCRIPTION)
|
155 |
-
# gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
|
156 |
gr.ChatInterface(
|
157 |
fn=chat_llama3_8b,
|
158 |
chatbot=chatbot,
|
159 |
fill_height=True,
|
160 |
-
# additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
|
161 |
-
# additional_inputs=[
|
162 |
-
# gr.Slider(minimum=0,
|
163 |
-
# maximum=1,
|
164 |
-
# step=0.1,
|
165 |
-
# value=0.95,
|
166 |
-
# label="Temperature",
|
167 |
-
# render=False),
|
168 |
-
# gr.Slider(minimum=128,
|
169 |
-
# maximum=4096,
|
170 |
-
# step=1,
|
171 |
-
# value=512,
|
172 |
-
# label="Max new tokens",
|
173 |
-
# render=False ),
|
174 |
-
# ],
|
175 |
examples=[
|
176 |
['What are the key differences between a sole proprietorship and a partnership?'],
|
177 |
['What legal steps should I take if I want to start a business in the US?'],
|
|
|
18 |
|
19 |
DESCRIPTION = '''
|
20 |
<div style="display: flex; align-items: center; justify-content: center; text-align: center;">
|
21 |
+
<img src="https://wealthwizards.org/upload/logo_black_no_background_square.png" alt="Wealth Wizards Logo" style="width: 60px; height: auto; margin-right: 10px;">
|
22 |
<div style="display: inline-block; text-align: left;">
|
23 |
<h1 style="font-size: 36px; margin: 0;">AI Lawyer</h1>
|
24 |
<p style="font-size: 15px; margin: 0;">wealth wizards</p>
|
|
|
152 |
with gr.Blocks(fill_height=True, css=css) as demo:
|
153 |
|
154 |
gr.Markdown(DESCRIPTION)
|
|
|
155 |
gr.ChatInterface(
|
156 |
fn=chat_llama3_8b,
|
157 |
chatbot=chatbot,
|
158 |
fill_height=True,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
examples=[
|
160 |
['What are the key differences between a sole proprietorship and a partnership?'],
|
161 |
['What legal steps should I take if I want to start a business in the US?'],
|