kwabs22
commited on
Commit
•
fea7e7a
1
Parent(s):
ea62522
Yield from exists ?
Browse files
app.py
CHANGED
@@ -32,6 +32,12 @@ def generate_response(user_message): #Figure Out the parameters later and find a
|
|
32 |
error_message = process.stderr.read()
|
33 |
print(f"Error: {error_message}")
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
def custom_generate_response(user_message, builtinprompt): #Figure Out the parameters later and find a way to get the ram usage
|
36 |
user_message = builtinprompt + '\n\n ' + user_message
|
37 |
|
@@ -62,7 +68,7 @@ def custom_generate_response(user_message, builtinprompt): #Figure Out the param
|
|
62 |
if process.returncode != 0:
|
63 |
error_message = process.stderr.read()
|
64 |
print(f"Error: {error_message}")
|
65 |
-
|
66 |
|
67 |
CustomPrompts = [
|
68 |
"Class Diagram for:",
|
|
|
32 |
error_message = process.stderr.read()
|
33 |
print(f"Error: {error_message}")
|
34 |
|
35 |
+
|
36 |
+
def custom_generate_response(cust_user_message):
|
37 |
+
cust_user_message = CustomPrompts[0] + '\n\n' + cust_user_message
|
38 |
+
yield from generate_response(cust_user_message)
|
39 |
+
|
40 |
+
"""
|
41 |
def custom_generate_response(user_message, builtinprompt): #Figure Out the parameters later and find a way to get the ram usage
|
42 |
user_message = builtinprompt + '\n\n ' + user_message
|
43 |
|
|
|
68 |
if process.returncode != 0:
|
69 |
error_message = process.stderr.read()
|
70 |
print(f"Error: {error_message}")
|
71 |
+
"""
|
72 |
|
73 |
CustomPrompts = [
|
74 |
"Class Diagram for:",
|