Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update gradio version and remove server URI
Browse files
openai_gradio/__init__.py
CHANGED
@@ -11,8 +11,7 @@ def get_fn(model_name: str, preprocess: Callable, postprocess: Callable, base_ur
|
|
11 |
inputs = preprocess(message, history)
|
12 |
client = OpenAI(
|
13 |
api_key=api_key,
|
14 |
-
base_url=base_url
|
15 |
-
# base_url="https://testflight-demo-nightly.fly.dev/api/v1",
|
16 |
)
|
17 |
completion = client.chat.completions.create(
|
18 |
model=model_name,
|
|
|
11 |
inputs = preprocess(message, history)
|
12 |
client = OpenAI(
|
13 |
api_key=api_key,
|
14 |
+
base_url=base_url,
|
|
|
15 |
)
|
16 |
completion = client.chat.completions.create(
|
17 |
model=model_name,
|
openai_gradio/__pycache__/__init__.cpython-310.pyc
CHANGED
Binary files a/openai_gradio/__pycache__/__init__.cpython-310.pyc and b/openai_gradio/__pycache__/__init__.cpython-310.pyc differ
|
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
openai
|
2 |
-
gradio==5.
|
|
|
1 |
openai
|
2 |
+
gradio==5.7.1
|