Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,8 @@ from transformers import load_tool, ReactCodeAgent, HfApiEngine
|
|
| 2 |
from PIL import Image, ImageDraw, ImageFont
|
| 3 |
import tempfile
|
| 4 |
import gradio as gr
|
|
|
|
|
|
|
| 5 |
|
| 6 |
#%% Methods
|
| 7 |
# Function to add a label to an image
|
|
|
|
| 2 |
from PIL import Image, ImageDraw, ImageFont
|
| 3 |
import tempfile
|
| 4 |
import gradio as gr
|
| 5 |
+
from smolagents import ReactCodeAgent, CodeAgent, InferenceClientModel
|
| 6 |
+
from smolagents import HfApiEngine
|
| 7 |
|
| 8 |
#%% Methods
|
| 9 |
# Function to add a label to an image
|