Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def app2_response(history,text,img):
|
|
| 63 |
|
| 64 |
# Function that takes User Inputs and displays it on ChatUI
|
| 65 |
|
| 66 |
-
def app1_query(img):
|
| 67 |
if not img:
|
| 68 |
history += [(txt_prompt_1,None)]
|
| 69 |
return history
|
|
@@ -73,7 +73,7 @@ def app1_query(img):
|
|
| 73 |
return history
|
| 74 |
|
| 75 |
# Function that takes User Inputs, generates Response and displays on Chat UI
|
| 76 |
-
def app1_response(img):
|
| 77 |
if not img:
|
| 78 |
response = txt_model.generate_content(txt_prompt_1)
|
| 79 |
history += [(None,response.text)]
|
|
|
|
| 63 |
|
| 64 |
# Function that takes User Inputs and displays it on ChatUI
|
| 65 |
|
| 66 |
+
def app1_query(history,img):
|
| 67 |
if not img:
|
| 68 |
history += [(txt_prompt_1,None)]
|
| 69 |
return history
|
|
|
|
| 73 |
return history
|
| 74 |
|
| 75 |
# Function that takes User Inputs, generates Response and displays on Chat UI
|
| 76 |
+
def app1_response(history,img):
|
| 77 |
if not img:
|
| 78 |
response = txt_model.generate_content(txt_prompt_1)
|
| 79 |
history += [(None,response.text)]
|