Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import gradio as gr
|
|
4 |
|
5 |
model_name = "gpt-3.5-turbo"
|
6 |
LLM = OpenAI(model_name=model_name, temperature=0.1)
|
|
|
7 |
|
8 |
def create_history_messages(history: List[Tuple[str, str]]) -> List[dict]:
|
9 |
history_messages = [{"role": "user", "content": m[0]} for m in history]
|
|
|
4 |
|
5 |
model_name = "gpt-3.5-turbo"
|
6 |
LLM = OpenAI(model_name=model_name, temperature=0.1)
|
7 |
+
openai.api_key = "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"
|
8 |
|
9 |
def create_history_messages(history: List[Tuple[str, str]]) -> List[dict]:
|
10 |
history_messages = [{"role": "user", "content": m[0]} for m in history]
|