Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,12 +2,12 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
|
4 |
# Load the model
|
5 |
-
model = torch.load("
|
6 |
|
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
|
|
|
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
|