Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ interaction_count = 0
|
|
| 74 |
def interact(user_input, history):
|
| 75 |
global tokenizer, model, interaction_count
|
| 76 |
try:
|
| 77 |
-
if tokenizer is None or model is
|
| 78 |
raise ValueError("Tokenizer or model is not initialized.")
|
| 79 |
|
| 80 |
# Increment interaction count
|
|
|
|
| 74 |
def interact(user_input, history):
|
| 75 |
global tokenizer, model, interaction_count
|
| 76 |
try:
|
| 77 |
+
if tokenizer is None or model is None:
|
| 78 |
raise ValueError("Tokenizer or model is not initialized.")
|
| 79 |
|
| 80 |
# Increment interaction count
|