asthaa30 commited on
Commit
8a25d94
·
verified ·
1 Parent(s): 22727a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -2,10 +2,10 @@ import gradio as gr
2
  import json
3
  from huggingface_hub import InferenceClient
4
 
5
- # Hugging Face model for maritime legal advice
6
- MODEL = "HuggingFaceH4/zephyr-7b-beta"
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 a fine-tuned model for providing legal advice on Indian maritime law.",
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__":