Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ class LocalLLM:
|
|
32 |
out = outputs[0] # fallback if it's just a list of strings
|
33 |
else:
|
34 |
out = str(outputs)
|
35 |
-
print("🧪 Final object to return:", type(
|
36 |
return {'role': 'assistant', 'content': out}
|
37 |
except Exception as e:
|
38 |
print(f"❌ Error in LocalLLM.generate(): {e}")
|
|
|
32 |
out = outputs[0] # fallback if it's just a list of strings
|
33 |
else:
|
34 |
out = str(outputs)
|
35 |
+
print("🧪 Final object to return:", type(out), out[:100])
|
36 |
return {'role': 'assistant', 'content': out}
|
37 |
except Exception as e:
|
38 |
print(f"❌ Error in LocalLLM.generate(): {e}")
|