Spaces:
Running
Running
Omar Solano
commited on
Commit
·
e84f436
1
Parent(s):
9e20f4b
fix arg order
Browse files- gradio_anthropic.py +8 -1
gradio_anthropic.py
CHANGED
@@ -14,7 +14,14 @@ logging.getLogger("httpx").setLevel(logging.WARNING)
|
|
14 |
|
15 |
|
16 |
def generate_completion(
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
):
|
19 |
if os.getenv("ANTHROPIC_API_KEY"):
|
20 |
api_key = os.getenv("ANTHROPIC_API_KEY")
|
|
|
14 |
|
15 |
|
16 |
def generate_completion(
|
17 |
+
input,
|
18 |
+
history,
|
19 |
+
duplicate,
|
20 |
+
api_key,
|
21 |
+
model,
|
22 |
+
system_prompt,
|
23 |
+
temperature,
|
24 |
+
max_tokens,
|
25 |
):
|
26 |
if os.getenv("ANTHROPIC_API_KEY"):
|
27 |
api_key = os.getenv("ANTHROPIC_API_KEY")
|