umaiku commited on
Commit
75f4db4
·
verified ·
1 Parent(s): 6399f7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -81,6 +81,7 @@ agent = ToolCallingAgent(tools=[retriever_tool], model=HfApiModel(model))
81
  def respond(message, history: list[tuple[str, str]], system_message, max_tokens, temperature, top_p, score,):
82
 
83
  print(datetime.now())
 
84
  context = retriever_tool(message)
85
 
86
  is_law = client.text_generation(f"""Given the user question below, classify it as either being about "Law" or "Other".
@@ -155,4 +156,5 @@ demo = gr.ChatInterface(
155
 
156
 
157
  if __name__ == "__main__":
158
- demo.launch(debug=True)
 
 
81
  def respond(message, history: list[tuple[str, str]], system_message, max_tokens, temperature, top_p, score,):
82
 
83
  print(datetime.now())
84
+ print(message)
85
  context = retriever_tool(message)
86
 
87
  is_law = client.text_generation(f"""Given the user question below, classify it as either being about "Law" or "Other".
 
156
 
157
 
158
  if __name__ == "__main__":
159
+ demo.launch(debug=True)
160
+ print("Ready!")