Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ model = torch.load("chatbot_model.pt") # Adjust as needed
|
|
| 7 |
# Define the chatbot function
|
| 8 |
def chatbot(input_text):
|
| 9 |
# Use your model inference function here
|
| 10 |
-
response =
|
| 11 |
return response
|
| 12 |
|
| 13 |
# Define the Gradio interface
|
|
|
|
| 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
|