Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import
|
| 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
|