Update app.py
Browse files
app.py
CHANGED
@@ -31,21 +31,6 @@ Given the question, chart analysis output answer and additional context, come up
|
|
31 |
"""
|
32 |
|
33 |
|
34 |
-
|
35 |
-
def function_that_does_something(**kwargs):
|
36 |
-
# Extract the first two items from the kwargs dictionary
|
37 |
-
first_two_items = dict(list(kwargs.items())[:2])
|
38 |
-
|
39 |
-
# Extract the 'three' argument, defaulting to 3 if not provided
|
40 |
-
three = kwargs.get('three', 3)
|
41 |
-
|
42 |
-
# Call another function with the filtered keyword arguments
|
43 |
-
result = function_of_interest(**first_two_items)
|
44 |
-
|
45 |
-
# Return both the result of function_of_interest and the 'three' argument
|
46 |
-
return result, three
|
47 |
-
|
48 |
-
|
49 |
@spaces.GPU
|
50 |
def predict(image, input_text, input_context):
|
51 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
31 |
"""
|
32 |
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
@spaces.GPU
|
35 |
def predict(image, input_text, input_context):
|
36 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|