Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -841,14 +841,6 @@ def process_text_input(text_input):
|
|
| 841 |
print(error_msg)
|
| 842 |
return "<p>No food items detected</p>", error_msg, None, "<p>Analysis not available due to an error</p>"
|
| 843 |
|
| 844 |
-
# Example images for the demo
|
| 845 |
-
def get_example_images():
|
| 846 |
-
example_urls = [
|
| 847 |
-
"https://huggingface.co/datasets/huggingface-tools/default-examples/resolve/main/images/restaurant_bill1.jpg",
|
| 848 |
-
"https://huggingface.co/datasets/huggingface-tools/default-examples/resolve/main/images/restaurant_bill2.jpg"
|
| 849 |
-
]
|
| 850 |
-
return example_urls
|
| 851 |
-
|
| 852 |
# Create the Gradio interface
|
| 853 |
def create_gradio_interface():
|
| 854 |
# Define CSS for the interface
|
|
|
|
| 841 |
print(error_msg)
|
| 842 |
return "<p>No food items detected</p>", error_msg, None, "<p>Analysis not available due to an error</p>"
|
| 843 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 844 |
# Create the Gradio interface
|
| 845 |
def create_gradio_interface():
|
| 846 |
# Define CSS for the interface
|