Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def process_files(files, model_type):
|
|
54 |
def chat_submit_func(message, files, chat_history, model, temperature, top_p, max_tokens, api_key):
|
55 |
print(model)
|
56 |
client = genai.Client(api_key=api_key)
|
57 |
-
gen_model = client.models.get(model)
|
58 |
|
59 |
# Prepare inputs
|
60 |
if model_types[model] == "text" and files:
|
@@ -107,7 +107,7 @@ def chat_submit_func(message, files, chat_history, model, temperature, top_p, ma
|
|
107 |
def single_submit_func(prompt, files, model, temperature, top_p, max_tokens, api_key):
|
108 |
print(model)
|
109 |
client = genai.Client(api_key=api_key)
|
110 |
-
gen_model = client.models.get(model)
|
111 |
|
112 |
# Prepare inputs
|
113 |
if model_types[model] == "text" and files:
|
|
|
54 |
def chat_submit_func(message, files, chat_history, model, temperature, top_p, max_tokens, api_key):
|
55 |
print(model)
|
56 |
client = genai.Client(api_key=api_key)
|
57 |
+
gen_model = client.models.get(model=model)
|
58 |
|
59 |
# Prepare inputs
|
60 |
if model_types[model] == "text" and files:
|
|
|
107 |
def single_submit_func(prompt, files, model, temperature, top_p, max_tokens, api_key):
|
108 |
print(model)
|
109 |
client = genai.Client(api_key=api_key)
|
110 |
+
gen_model = client.models.get(model=model)
|
111 |
|
112 |
# Prepare inputs
|
113 |
if model_types[model] == "text" and files:
|