Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,9 +72,9 @@ def message_and_history(img, input, history, api_key):
|
|
| 72 |
output = api_calling(img,inp, api_key)
|
| 73 |
# if len(input) == 0:
|
| 74 |
# input = "How many tiles need replacement?"
|
| 75 |
-
history.append((input, output))
|
| 76 |
-
else:
|
| 77 |
-
|
| 78 |
return history, history
|
| 79 |
|
| 80 |
block = gr.Blocks(theme=gr.themes.Glass(primary_hue="slate"))
|
|
|
|
| 72 |
output = api_calling(img,inp, api_key)
|
| 73 |
# if len(input) == 0:
|
| 74 |
# input = "How many tiles need replacement?"
|
| 75 |
+
# history.append((input, output))
|
| 76 |
+
# else:
|
| 77 |
+
history.append((input, output))
|
| 78 |
return history, history
|
| 79 |
|
| 80 |
block = gr.Blocks(theme=gr.themes.Glass(primary_hue="slate"))
|