Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import gradio
|
|
8 |
openai.api_key = "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"
|
9 |
|
10 |
messages = [{"role": "system", "content": "You are a Indian Lawyer and Gave Advice according to Indian constitution"}]
|
11 |
-
|
12 |
def CustomChatGPT(user_input):
|
13 |
messages.append({"role": "user", "content": user_input})
|
14 |
response = openai.ChatCompletion.create(
|
|
|
8 |
openai.api_key = "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"
|
9 |
|
10 |
messages = [{"role": "system", "content": "You are a Indian Lawyer and Gave Advice according to Indian constitution"}]
|
11 |
+
|
12 |
def CustomChatGPT(user_input):
|
13 |
messages.append({"role": "user", "content": user_input})
|
14 |
response = openai.ChatCompletion.create(
|