momergul
commited on
Commit
·
7ef6c1a
1
Parent(s):
c2b3ecf
Update
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def get_model_response(
|
|
41 |
model, adapter_name, processor, index_to_token, role: str,
|
42 |
image_paths: List[str], user_message: str = "", target_image: str = ""
|
43 |
) -> str:
|
44 |
-
model.model.set_adapter(adapter_name)
|
45 |
if role == "speaker":
|
46 |
img_dir = "tangram_pngs"
|
47 |
print("Starting processing")
|
@@ -214,6 +214,7 @@ def create_app():
|
|
214 |
processor = get_processor()
|
215 |
index_to_token = get_index_to_token()
|
216 |
|
|
|
217 |
def start_interaction(model_iteration):
|
218 |
if model_iteration is None:
|
219 |
return [], "Please select a model iteration.", "", "", "", gr.update(interactive=False), \
|
|
|
41 |
model, adapter_name, processor, index_to_token, role: str,
|
42 |
image_paths: List[str], user_message: str = "", target_image: str = ""
|
43 |
) -> str:
|
44 |
+
#model.model.set_adapter(adapter_name)
|
45 |
if role == "speaker":
|
46 |
img_dir = "tangram_pngs"
|
47 |
print("Starting processing")
|
|
|
214 |
processor = get_processor()
|
215 |
index_to_token = get_index_to_token()
|
216 |
|
217 |
+
print("Heyo!")
|
218 |
def start_interaction(model_iteration):
|
219 |
if model_iteration is None:
|
220 |
return [], "Please select a model iteration.", "", "", "", gr.update(interactive=False), \
|