Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,10 @@ import gradio as gr
|
|
2 |
import json
|
3 |
from huggingface_hub import InferenceClient
|
4 |
|
5 |
-
#
|
6 |
-
MODEL = "
|
7 |
|
8 |
-
# Initialize the client
|
9 |
client = InferenceClient(MODEL)
|
10 |
|
11 |
def respond(message, history: list[tuple[str, str]], system_message, max_tokens, temperature, top_p):
|
@@ -58,7 +58,7 @@ demo = gr.ChatInterface(
|
|
58 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
|
59 |
],
|
60 |
title="Maritime Legal Compliance",
|
61 |
-
description="This chatbot uses
|
62 |
)
|
63 |
|
64 |
if __name__ == "__main__":
|
|
|
2 |
import json
|
3 |
from huggingface_hub import InferenceClient
|
4 |
|
5 |
+
# Use the fine-tuned maritime legal model
|
6 |
+
MODEL = "nomiChroma3.1"
|
7 |
|
8 |
+
# Initialize the client with the correct model
|
9 |
client = InferenceClient(MODEL)
|
10 |
|
11 |
def respond(message, history: list[tuple[str, str]], system_message, max_tokens, temperature, top_p):
|
|
|
58 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
|
59 |
],
|
60 |
title="Maritime Legal Compliance",
|
61 |
+
description="This chatbot uses the fine-tuned model for providing legal advice on Indian maritime law.",
|
62 |
)
|
63 |
|
64 |
if __name__ == "__main__":
|