Update gen_ai.py
Browse files
gen_ai.py
CHANGED
|
@@ -32,7 +32,7 @@ class traditional_model:
|
|
| 32 |
predicted_class = torch.argmax(outputs.logits, dim=1).item()
|
| 33 |
prediction = list(label_dict.keys())[predicted_class]
|
| 34 |
return prediction
|
| 35 |
-
class
|
| 36 |
def __init__(self, query):
|
| 37 |
self.response = f"Result from Function B for query: {query}"
|
| 38 |
|
|
|
|
| 32 |
predicted_class = torch.argmax(outputs.logits, dim=1).item()
|
| 33 |
prediction = list(label_dict.keys())[predicted_class]
|
| 34 |
return prediction
|
| 35 |
+
class llm_model:
|
| 36 |
def __init__(self, query):
|
| 37 |
self.response = f"Result from Function B for query: {query}"
|
| 38 |
|