Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,17 @@
|
|
| 1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
|
|
|
|
|
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
|
| 1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 2 |
+
import spaces
|
| 3 |
+
import gradio as gr
|
| 4 |
import datetime
|
| 5 |
import requests
|
| 6 |
import pytz
|
| 7 |
import yaml
|
| 8 |
from tools.final_answer import FinalAnswerTool
|
| 9 |
|
| 10 |
+
@spaces.GPU
|
| 11 |
+
def run_agent(prompt):
|
| 12 |
+
# Logika pemanggilan agent/model di sini
|
| 13 |
+
return response
|
| 14 |
+
|
| 15 |
from Gradio_UI import GradioUI
|
| 16 |
|
| 17 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|