KrishP-12 commited on
Commit
8ac7675
·
verified ·
1 Parent(s): fa5a6e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,13 +1,13 @@
1
  import gradio as gr
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
 
1
  import gradio as gr
2
+ from model2 import ChatbotModel
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 = ChatbotModel.get_response(input_text) # Call to your response function
11
  return response
12
 
13
  # Define the Gradio interface