muhammadnst commited on
Commit
76825df
·
verified ·
1 Parent(s): 8c5c24b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
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 !