Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -100,8 +100,8 @@ Please remember that your role is to provide general legal information and analy
|
|
100 |
@spaces.GPU(duration=120)
|
101 |
def chat_llama3_8b(message: str,
|
102 |
history: list,
|
103 |
-
temperature
|
104 |
-
max_new_tokens
|
105 |
) -> str:
|
106 |
"""
|
107 |
Generate a streaming response using the llama3-8b model.
|
@@ -156,8 +156,6 @@ with gr.Blocks(fill_height=True, css=css) as demo:
|
|
156 |
fn=chat_llama3_8b,
|
157 |
chatbot=chatbot,
|
158 |
fill_height=True,
|
159 |
-
temperature=0.6,
|
160 |
-
max_new_tokens=4096,
|
161 |
examples=[
|
162 |
['What are the key differences between a sole proprietorship and a partnership?'],
|
163 |
['What legal steps should I take if I want to start a business in the US?'],
|
|
|
100 |
@spaces.GPU(duration=120)
|
101 |
def chat_llama3_8b(message: str,
|
102 |
history: list,
|
103 |
+
temperature=0.6,
|
104 |
+
max_new_tokens=4096
|
105 |
) -> str:
|
106 |
"""
|
107 |
Generate a streaming response using the llama3-8b model.
|
|
|
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?'],
|