KrishP-12 commited on
Commit
b88214d
·
verified ·
1 Parent(s): 3bc597c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,12 +2,12 @@ import gradio as gr
2
  import torch
3
 
4
  # Load the model
5
- model = torch.load("chatbot_model.pt") # Adjust as needed
6
 
7
  # Define the chatbot function
8
  def chatbot(input_text):
9
  # Use your model inference function here
10
- response = model.qa_chain(input_text) # Call to your response function
11
  return response
12
 
13
  # Define the Gradio interface
 
2
  import torch
3
 
4
  # Load the model
5
+ model = torch.load("model.pt") # Adjust as needed
6
 
7
  # Define the chatbot function
8
  def chatbot(input_text):
9
  # Use your model inference function here
10
+ response = get_response(input_text) # Call to your response function
11
  return response
12
 
13
  # Define the Gradio interface